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 retrieve text from a website
Export Database
activex can't create object solution, ahhh
How to refresh a Tree View from another Form
event viewer log error 17055 mssqlserver backup logs
Make table Union All query
Excel paysheet
vb.net check isIde
I have an Excel spreadsheet that is too large
Use a countdown display in a batch .bat file