Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DELETE FROM Subquery Question

631584Jan 9 2009 — edited Jan 9 2009
When having to delete form a subquery (based on two unique identifiers) I concantenate the two columns to make them unique to an entry. Are there issues w/ this method and can any suggest something different (if any).


delete from ACCT_TEMP a where upper(a.id_name) || a.system_id in (
select upper(a.id_name) || a.system_id from ACCT_TEMP a, ACCT b
where upper(trim(both ' ' from a.id_name)) = upper(trim(both ' ' from b.account_name)) and a.system_id = b.system_id)
This post has been answered by William Robertson on Jan 9 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 6 2009
Added on Jan 9 2009
5 comments
1,185 views