Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Counting rows returned from duplicate entries

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-04-20 : 08:32:30
Chris writes "I can write an sql query to return data from a table which holds multiple entries (eg. A database contains people who buys a book and which book it is. The script returns each person and the amount of times they have bought a book)

However I do not need to know all the data I just need to know how many people are returned so I can find out how many people bought more than 3 books or exactly 3 books etc? Every time I try and add a count in the query returns an error!

Can you help?"
   

- Advertisement -