Thread: [Solved] Multiple queries on table
View Single Post
 
Old 09-14-2012, 02:38 AM
jillapass jillapass is offline Windows 7 32bit Office 2007
Novice
 
Join Date: Dec 2011
Posts: 26
jillapass is on a distinguished road
Default Multiple queries on table

I am trying to create a report as follows, but don't know how to.

I have a list of bookings and I find all the bookings for a particular week.
No problem there.

Then, I want to use the client for each of these bookings and find out all the bookings previously for this client, but only for clients who have a booking for the specified week.

So, to clarify, for next week I have 127 bookings and for each of these bookings I want to see if the client has booked previously.

Currently I am just finding the bookings for the specified week, but don't know how to do the 2nd query.

I guess what I need is to do a 2nd WHERE statement which is different from the 1st one, but on the same table.
Thanks fir any help.
Reply With Quote