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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combining SQL COUNT

Status
Not open for further replies.

andybeanland

IS-IT--Management
Jan 28, 2005
15
GB
Hello,

I'm trying to do a simple count of who is attending on a register. What I would like to do is count the number of children attending (its for a nursery) for each day of the week and then create a report to show this. So far I've only managed to do several seperate counts which are like the one below:

SELECT Count([tbl_Monday.Attending]) AS NoOfChildrenAttendingOnMonday
FROM tbl_Monday
WHERE ([tbl_Monday].[Attending]=-1)

and I have one for each day of the week - just substitute Tuesday for every Monday etc...

Is there anyway that I can get the results for the whole week to be returned by one SQL statement?

Thanks for your help!

Andy
 
You have one table per day ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top