Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using MAX() and remaining optimized
Message
De
31/03/2017 16:00:22
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Optimisation
Titre:
Using MAX() and remaining optimized
Versions des environnements
SQL Server:
SQL Server 2014
OS:
Windows 8.1
Network:
Windows Server 2012
Divers
Thread ID:
01649616
Message ID:
01649616
Vues:
55
Would there be a way to remain optimized when using MAX()?

I have a select like this:
SELECT TOP 10 Client.NoCountry,MAX(Client.Numero)
 FROM Client
 GROUP BY Client.NoCountry ORDER BY 2 DESC
Without the MAX(), the select runs instantly. With the MAX(), despite the fact that I created the execution plan recommended index, there is still a delay. I am looking for alternative approaches which would achieve the same.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform