Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper SQL Query Statement
Message
From
15/02/2002 12:33:50
 
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00620242
Message ID:
00620751
Views:
25
The neat thing about SQL is that there can be multiple solutions:
SELECT * FROM Invoice WHERE invoiceID IN (
 SELECT invoiceID FROM invoiceLineItems GROUP BY invoiceID HAVING COUNT(*) >=3)
AND invoiceID NOT IN (
 SELECT invoiceID FROM invoicePayments)
-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform