Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

three or more

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Table: Streeta, Streetb, trouble, atime, class
I have a table which I would like to have a querry which only shows the records if there are three or more in which streeta and streetb match
streeta streetb trouble
ie. main cross flash
main cross green out
main cross stuck
main side flash
main side red out
main side all out
 
Select StreetA, StreetB
from tblMain
Group by StreetA, StreetB
Having Count(*) > 2

Derek Macrae [sig][/sig]
 
Thanks for the help. My mistake was

select Streeta,streetb, trouble
from tbmain
Group by Streeta,Streetb
Having count(*)>2;

which gave me an error
I now use this querry with the tbmain to get a complete listing of 3 or more calls
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top