Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compound key exclusion select
Message
From
21/07/2005 12:08:07
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Compound key exclusion select
Miscellaneous
Thread ID:
01034714
Message ID:
01034714
Views:
75
What would be the proper syntax for a select statement which excludes rows based on a compound key? For example:

SELECT * FROM Table1
Where ID1 and ID2 not in Table2

This is obviously the wrong syntax, but I would like all of the items is Table1 where the key of ID1 and ID2 do not exist in Table2.
Thank You

Rollin Burr

Politicians and diapers have one thing in common. They should both be changed regularly, and for the same reason.
Next
Reply
Map
View

Click here to load this message in the networking platform