Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TOP 10 within a group
Message
De
15/06/2004 11:55:14
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00913710
Message ID:
00913918
Vues:
16
SELECT suppliercode, productcode, dollarsales
	FROM SuppTable 
	WHERE productcode IN ( SELECT TOP 10 productcode
				FROM SuppTable top10
				WHERE top10.suppliercode = SuppTable.suppliercode
				ORDER BY dollarsales DESCENDING )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform