use DYNAMICS if (select count(*) from ACTIVITY) < $10 BEGIN PRINT 'the users is less than 10.' END ELSE PRINT 'the users is grater than 10.'