Microsoft
Software
Hardware
Network
Question : Count query help
I need to creat a query that returns items in my table that appear > 3 times and I'm getting a little stuck on the syntax.
I have a table containing:
ID Instance Code
I want to return a list of all Codes where that code appears more than 3 times. I am getting stuck on how to select these distinct codes, any help much appreciated.
Answer : Count query help
Correction :
1:
SELECT Code, COUNT(*) FROM yourTable GROUP BY Code HAVING COUNT(*)>3
Open in New Window
Select All
Random Solutions
Creating a 'Please Wait' Screen while asp.net page loads
How do I join multiple tables using IDataReader
variant for ServerName?
Setting filter on sub report
Databinding drop-down controls, order of events issue...
Export data from Access to multiple Excel files using a filtered string from a drop down list on a form
Erased C:\\Inetpub\wwwroot
Awstats running multiple hosts (error)
Windows cannot access the file gpt.ini for GPO
Access to USB drive through Terminal Services