Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. kvince

    How to code for TOP 5 for each category

    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.
  2. kvince

    How to code for TOP 5 for each category

    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.

Part and Inventory Search

Back
Top