![]() |
| ||
| What query do i need??? Hi all, I'm creating an appointments scheduling system. I have a bookings table and a time table among others in a MySQL database. Each entry in the bookings table has a slotId value. In the time table each slotId has a startTime and an endTime. This is what i want to do. I want a sql query to run so that when you enter a date and stylist into a form it runs a query and brings back all timeSlots available on that date with that stylist. I have this query which is bringing back all the appointments on the date specified.
But i want it to do the opposite and bring back all the slotId's on the specified date that have not been allocated an appointment. Any suggestions?? Thanks :) |
| ||
| Re: What query do i need??? Use Left outer Join SELECT bookings.*,times.slotId FROM bookings |
| ||
| Re: What query do i need??? Excellent thank you :) |
| All times are GMT -4. The time now is 8:01 pm. |
Forum system based on vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©2003 - 2010 DaniWeb® LLC