In SQL 2000, a quick test showed no significant difference in selecting 35K distinct entries from a table of 625K rows. I haven't seen any other stats. It would be interesting to see test results if anyone finds some. Terry L. Broadbent FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
In SQl 7 and 2000, the query plan is exactly the same for the queries I tested. The IO statistics were identical for each query in SQL 7 and 2000. The time differences were insignificant.
In my limited testing there is no difference between Distinct and Group By in a simplae query. Do you have a source of you information? Terry L. Broadbent FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
I ran the queries you listed in SQL 7 and 2000 and see no difference. Terry L. Broadbent FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.