Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimizing for group by
Message
From
24/01/2011 20:48:01
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01497285
Message ID:
01497295
Views:
33
>In SQL Server just use CONVERT(char(6), Hit.AddDate, 112) instead of your complex expression. Index on AddDate should speed this query a bit.
>Also, how selective the NoServer column is (e.g. how many values it may have)?

Thanks, NoServer may or may not be in the query. This can have about 1 to 10 different values.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform