PHV
Thank you for your help! I'm still new at this. The code works, but I'm not sure why (please excuse my ignorance). I thought GROUP BY always involved an aggregation in the SELECT statement.
Greetings,
I have a table with three columns: Specialty, Diagnosis and Diag_count. I'm looking for the TOP 5 (by count) Diagnosis codes for each Specialty. I could use some help with the code. Since I'm on SQL Server 2000 I have no qualms about using TOP.
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.