Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another select statement I need
Message
From
30/04/2002 10:49:52
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Another select statement I need
Miscellaneous
Thread ID:
00650862
Message ID:
00650862
Views:
56
Hi again all,

Table J is a pure junction table between Table A and B. All J has is it's own integer pkey plus an fkey to A and an FKey to B

How can I write a select statement to select all combinations of A and B that are NOT currently in J? Example below:

A
---
1
2
3

B
---
4
5
6

J
---
1 4
1 5
1 6
2 4
3 4
3 5

I want a select that will return
S
---
2 5
2 6
3 6

thanks!
Ken B. Matson
GCom2 Solutions
Next
Reply
Map
View

Click here to load this message in the networking platform