add SQL Function

add SQL Function

Hi

Can you add the SQL function  EXISTS please.

As one thing I need to do quite often is set pivots up for people that HAVEN'T done something. and because they haven't done it, the record does not exist in that module. 
therefor i can provide a count of who has done it but not a list of who hasnt.