Understand technical stuff like a pro.
IF NOT EXISTS (SELECT 1 FROM Table1) AND NOT EXISTS (SELECT 1 FROM Table2) AND NOT EXISTS (SELECT 1 FROM Table3) BEGIN PRINT 'DATA DOES NOT EXIST' END ELSE BEGIN PRINT 'DATA DOES EXIST' END
IF NOT EXISTS (SELECT 1 FROM Table1) AND NOT EXISTS (SELECT 1 FROM Table2) AND NOT EXISTS (SELECT 1 FROM Table3)
BEGIN
PRINT 'DATA DOES NOT EXIST'
END
ELSE
PRINT 'DATA DOES EXIST'