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

Only show count about a certain amount 1

Status
Not open for further replies.

likelylad

IS-IT--Management
Jul 4, 2002
388
GB
This seems like a simple query but I can't seem to get it working.

I want to run a query that will only show records that have a count above one.

This is the query that I thought would work

Code:
SELECT Field,Count(Field) From table where Count(Field)>1 Group By Field

Thanking in advance for any help received
 
How about:
[tt]
SELECT fld,COUNT(*)
FROM tbl
GROUP BY fld
HAVING COUNT(*)>1
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top