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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Very noddy counting query

Status
Not open for further replies.

supermatchgame

Programmer
May 16, 2007
50
GB
I have a table with about 70,000 rows in it. Each of these rows has a score, and there are 11 distinct scores. How can I display each score and the number of rows that have this score in transact sql?
 
Code:
SELECT Score, COUNT(*) AS Cnt
       FROM YourTable
GROUP BY Score

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top