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
¿Why is Access 2007 not respecting the Windows Date format setting?
Exchange 2010 Uninstall
Getting ODBC general error on command refresh background query
Convert Text field type to Date/Time
Insert activex into access 2000
Access Autoexec macro vs. Form_Open code for default form
sort subform query data entry
Linked Server Question - SQL Server Express 2005
Is there a way to export a SharePoint group to an excel file?
MS Access- populating first record on a form