If I have two SQL scripts in SQL 2012, and I want to receive an email if one of the scripts returns information and the other does not, how would i set that up?
select *
from
doc_queue_pend
where
create_timestamp < DATEADD(Minute, -20, GETDATE());
--want to see nothing
select *
from
doc_queue_final
where
create_timestamp > DATEADD(Minute, -20, GETDATE());
--want to see something