MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » June 2005

SQL delete not in related table



fixed

OK, I've spent about an hour trying to figure this out.  SQL does not like
the following statement:

DELETE FROM PODTL WHERE (VNDNR, WEEKX, DIGIT) NOT IN               
                        (SELECT (VNDNR, WEEKX, DIGIT) FROM POHDR);

I did this identical thing a half dozen times yesterday *EXCEPT* there was
only one field name to match on, not 3.  I've looked at manuals and googled.
I've tried with/without parens, with/without commas to no avail.  All the
examples I find do it on only one field.

What's wrong with the syntax?






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact