Заголовок



IF NOT EXISTS (SELECT * FROM tab1 WHERE Param1 = 10)
BEGIN
        PRINT 'NOT EXISTS'
END