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
Read matching files in a folder, read one of them and insert the Data in a Table
WHAT IS AN ILIST,IDATASOURCE,IENUMERA<wbr />BLE
Detecting Drag of a CListCtrl Header Column Divider
Access Calendar Control Help
T-SQL script to force users out of a database
Correct syntax for SQL between-like query
Using Batch file to Obtain the Computernames, usernames, IP Address and MAC Address from each remote PCs
No Netware NDS Trees detected
SQL Delete Syntax
How to reset value to " " in userform textbox