RE: Comparing specific rows in 2 tables
insert into ##temptable select relevant.columns from table1 inner join table2 on pk1 = pk2 where table1.createdate = yesterday and (table1.col1 <> table2.col1 or table1.col2 <> table2.col2 or ... ) You will then have all of the data needed for your email easily accessable.
2003-05-06