Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper SQL Query Statement
Message
 
 
À
15/02/2002 12:33:50
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00620242
Message ID:
00621011
Vues:
30
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform