Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper SQL Query Statement
Message
From
15/02/2002 18:57:04
 
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00620242
Message ID:
00621011
Views:
16
Thanks for your clean solution. Sometimes, we look for hard answers to simple questions instead of keeping it simple.

>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
It's "my" world. You're just living in it.
Previous
Reply
Map
View

Click here to load this message in the networking platform