Question : User defined function

I have a user define function that if

@PlansFolderCount OR @PlansDocumentCount  is > 0

the RETURN should say "greater" orthwise it should say "less"

Answer : User defined function

IF (@PlansFolderCount > 0) OR (@PlansDocumentCount >0)
   BEGIN
   SELECT 'Greater'
   END
ELSE
   BEGIN
   SELECT 'Less'
   END
Random Solutions  
 
programming4us programming4us