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
Function Key to go to the bottom of and edit field
Outlook emails stay marked as Unread
Simple SQL Join Query Syntax Issue
Cannot create Web app for Shared Service Provider setup in Sharepoint 2007
Insert ArrayList into SQL Database
Conditionally filter numbers based on digits beyond decimal point
DoCmd.RunMacro Problem/Question
Need help with combobox not selecting the correct record
Missing or broken reference msoutl.olb
VB.NET: get control by name and Reflection performance