Maimai's .Net Heaven
Friday, January 14, 2011
SQL Selection Queries
To compare two table values and select the ones that aren't common, say common field is ProductID:
select ProductID from Table1 where ProductID not in (select ProductID from Table2)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment