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
Web part order in SharePoint Server 2007
Data Set Extract
How to recover moved files and deleted files from Windows machine
Creative SB0460 - Windows 7
can disc stuck at stage 2 of 3
Excel: how can i obtain the cross product of concatenating two columns
System recovery HP Mediasmart Home Server EX 475 - no server found
i want to "get into" my laptop, secured with a password, that i do not remember
C# SQL Query considerations against a large database
VB.NET: optimal buffer size and speed issues with IO.FileStream