Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Catch 22 on group by
Message
De
21/05/2001 17:39:25
 
 
À
21/05/2001 09:05:10
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00508311
Message ID:
00509698
Vues:
26
>Mike - I understand this and agree - however, what if country ("USA") were in there too as a joined in table - why should I have to group on country when they are all the same?

How does SQL Server know that all the values are the same?

>Also - there are times when I might want the "last" one - "last" being determined by the group/sort orders.

The sorting is done after the Grouping has been calculated. Do you really want SQL Server to sort the data twice to solve you query?

-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