how about:
SELECT banid FROM a WHERE flags NOT LIKE '%v%' AND banid NOT IN (SELECT
banid FROM b);
-Nick
----------------------------------------------------------------------------
-----
Nick Fankhauser
Business: nickf(at)ontko(dot)com Phone 1.765.935.4283 Fax 1.765.962.9788
Ray Ontko & Co. Software Consulting Services
http://www.ontko.com/
Personal: nickf(at)infocom(dot)com http://www.infocom.com/~nickf