hi david, ty for your quick help the very problem is the clause NOT IN , I must use it in a WHERE section,I think. I'm building up an exclusion list of some features on user's role (security sake) and the users role comes from CGI Your suggestion is very useful for speeding up selection. Regards Maurizio