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
How do i create an Excel macro to copy/paste cell contents from one cell to another?
How do I create an automatic counter in MSWord?
Modifying the unattend.xml file to add CopyProfile
Keyboard input in Dialog box MFC
sleeping connections in mysql
Cannot find old Outlook Calendar Appointments
Can't view *.mht/*.mhtml files
Access ADP / SQL 2008 locking records
DPM Hot Fix KB970868 does NOT resolve Issue 7
"Search Key was not found in any record" Excel or TXT import to MS Access2007