If EXISTS (SELECT 1 FROM dbo.T1 WHERE T1.Name='Scot') BEGIN --<Do something> END ELSE BEGIN --<Do something> END