When the time is determined for a plurality of IF EXISTS conditions coexist with the AND connector, the NOT EXISTS empathy
IF EXISTS (SELECT 1 ) AND EXISTS (SELECT 2 )
BEGIN ....... END
ELSE BEGIN ..... END
Similarly if there is a plurality of conditions can be used OR connection, the NOT EXISTS empathy