SQLScholar
Programmer
Hey,
I have this code which is to select the top 20 insurers by gross.
Problem i want "count(*)," to count the top 1 to 20, but i cant get this to work properly.
Any ideas
Dan
----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
I have this code which is to select the top 20 insurers by gross.
Code:
SELECT Top 20
count(*),
[TOP].[Insurer Name] AS [Insurer Name],
sum([TOP].Gross) AS Gross
FROM
[TOP]
GROUP BY [TOP].[Insurer Name]
ORDER BY sum([TOP].Gross) desc
Problem i want "count(*)," to count the top 1 to 20, but i cant get this to work properly.
Any ideas
Dan
----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!