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
Load picture into image using a recordset
Excel table linked into Powerpoint slide
C: drive not accessable
Not showing Alert() before Response.redirect
Some users get IIS 500 errors when logging onto Sharepoint Team Site
How to get "User Name" in TaskManager process?
Mutiple active forms in Access
Use Variable to address a control
Timers in CWinthread derived classes
Import sent items