Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Need Help With Delete Syntax
I must be brain dead because I have done this in the past. I have two tables in Oracle that are identical, tables "address_1" & "address_2". I want to delete any duplicate addresses that may be on address_1 and address_2. So, I thought the syntax would be something like this:
delete from address_1 a
where a.field_1 = (select b.field_1 from address_2 b
and substr(a.field_2,1,10) =substr(b.field_2,1,10));
Please help if you can. I know it's a simple problem, but I'm running on empty!
Thanks, email: socalman_at_linkline.com Received on Thu Oct 26 2000 - 20:22:03 CDT