Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another select statement I need
Message
From
30/04/2002 11:23:55
 
 
To
30/04/2002 10:49:52
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00650862
Message ID:
00650891
Views:
14
If you keep this up, we're going to send you a bill <s>.

This is a situation for a CROSS JOIN.

(Warning - this is straight off the top of my head)

SELECT x.a, x.b
FROM
(SELECT a.value, b.value FROM a CROSS JOIN b) AS x
LEFT OUTER JOIN j ON x.a = j.a_value AND x.b = j.b_value
WHERE
j.id IS NULL

You can play with removing the derived table.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform