Insert trigger
Table A
Col A ColB
A 12
B 12
C 13
D 15
table B
A ABCD
B BCDE
C CDEF
D DEFG
I need a trigger that sends an email each time a value of 12 is inserted in this table . The email should contain a text attachment showing all the rows which have 12 in their B column with the latest being on the top .
email should have this data : (a join from the 2 above tables )
A 12 ABCD
B 12 BCDE
Thanks