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