mkrausnick
Programmer
I have a table that contains 1 or more records per member. I want to know how many members have only 1 record, how many have 2, how many have 3 records, etc. in the table.
In query analyzer, I want to do something like this:
Obviously this syntax didn't work. In the past I'd write code to throw the sub-query into an intermediate table and operate on that.
Is there way to accomplish this in Query Analyzer without using an intermediate table?
Mike Krausnick
Dublin, California
In query analyzer, I want to do something like this:
Code:
select dups,count(*) as cnt from (
select memberid,count(*) as dups from mytable group by memberid) group by dups
Is there way to accomplish this in Query Analyzer without using an intermediate table?
Mike Krausnick
Dublin, California