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

Click here to load this message in the networking platform