Click here to Skip to main content
15,922,696 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
normally in sqlserver query prepared with group be and distinct will give unique tuple-values then in query processing which one will give best performance either group-by or distinct
Posted
Comments
Mike Meinz 11-Jun-13 14:31pm    
Try it both ways and let us know your results.

1 solution

It depends on many things. Try both for your query and look at the execution plan. It should tell you what is happening.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900