Заголовок
SQL, T-SQL, Transact-SQL, Exists, Begin
IF NOT EXISTS (SELECT * FROM tab1 WHERE Param1 = 10)
BEGIN
        PRINT 'NOT EXISTS'
END