I have two tables tblsub and tblun they have a common field name 'filename'. I am trying to delte records in tblsub, if a record with filename is not found in tblun.
Tried different ways but still getting error.
DELETE FROM tblSub WHERE fileName NOT IN (SELECT fileName FROM tblUn) -- Just trying to help... <--- This is a wolf? We need a new icon.......
mikewolf@tst-us.com
Be careful when using "Not In (Select col from table)". This can create erroneous results if null values exist in the table of the subquery. See the article at
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.