Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using MAX() and remaining optimized
Message
From
31/03/2017 16:00:22
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Optimization
Title:
Using MAX() and remaining optimized
Environment versions
SQL Server:
SQL Server 2014
OS:
Windows 8.1
Network:
Windows Server 2012
Miscellaneous
Thread ID:
01649616
Message ID:
01649616
Views:
54
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
Next
Reply
Map
View

Click here to load this message in the networking platform