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
work with a file name that changes based on that days date
XP - can't pass through the login stage
Force TransferSpreadsheet to fail on key violation
Using runtime themes on XP Embedded
SSRS - How can I increase a multi-value param dropdown? Got to be a way
ASPIRE 5732z Acer - password
SQL Select problem...need records with "best match" returned in order
Generic path to open a file from VBA
Operations Manager Top 10 Memory Consumers
Is there a way of inserting hyphens (-) into all of the existing phone numbers contained in my Outlook 2007 contacts list? So the format will be 123-456-7890 instead of 1234567890