Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't get the syntax right
Message
 
 
À
04/09/2008 18:52:29
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01344993
Message ID:
01344999
Vues:
11
This message has been marked as the solution to the initial question of the thread.
SELECT Company, MAX( Number)
...
GROUP BY Company 
>sQL SERVER 2000
>
>A company field and a number field in each record. I want to find the highest number used in the number field for each company.
>
>Ex:
>
>Company         Number
>ABC               1
>DEF               1
>DEF               2
>DEF               3
>GHI               1
>
>Should pull:
>
>ABC     1
>DEF     3
>GHI     1
>
>
>I just can't get it....
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform