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
 Transact-SQL (2000)
 Using a Count Query and Testing the result

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-01-06 : 08:31:26
Mark writes "Hi, Using SQL Server 2000 with SP3, I wanted to know how you use a count function and then only display the result where the count is greater than a certain value.

for example I want to count how many times a person has used a given website address, and then only display those who have visited that address more than 30 times from the result."

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-01-06 : 08:36:47
you mean this?

select col1
from MyTable
group by col1
having count(*)>30

Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -