Gossamer Forum
Home : General : Databases and SQL :

Help with Delete Query

Quote Reply
Help with Delete Query
Can someone tell me why this statement doesn't work:

DELETE

FROM OE_HDR, OE_HDR_no_lines

WHERE OE_HDR.KEY_FLD = OE_HDR_no_lines.KEY_FLD

I am trying to delete records from the first table (OE_HDR) where those same records exist in the second table (OE_HDR_no_lines). If I change the "DELETE" to "SELECT *" I get the records I want to delete.

thanx
Subject Author Views Date
Thread Help with Delete Query Omni 9255 Feb 16, 2003, 3:57 PM
Thread Re: [Omni] Help with Delete Query
Paul 8965 Feb 16, 2003, 4:17 PM
Thread Re: [Paul] Help with Delete Query
Omni 8871 Feb 17, 2003, 6:04 AM
Post Re: [Omni] Help with Delete Query
Alex 8769 Feb 17, 2003, 11:43 AM
Thread Re: [Omni] Help with Delete Query
Andy 8941 Feb 17, 2003, 1:56 AM
Post Re: [Andy] Help with Delete Query
Omni 8795 Feb 17, 2003, 6:00 AM