Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

???

Status
Not open for further replies.

Yogi39

Technical User
Jun 20, 2001
273
CA
How can SQL delete the matching values of T1 from T2 ?
 
I think this will work:

DELETE
FROM T1
WHERE T1.MyPrimaryField in
(
SELECT DISTINCT T2.MyPrimaryField
FROM T2
)

If not, please give more info... Terry M. Hoey
th3856@txmail.sbc.com
While I don't mind e-mail messages, please post all questions in these forums for the benefit of all members.
 
Thank yo very much....excatly what I needed
:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top