Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How to query this

Author  Topic 

maamer
Starting Member

2 Posts

Posted - 2007-11-17 : 03:47:26
Carer and patients.
Carer should at work with patient
each carer give his shedule day by day exple:
carer1

monday
from 02/01/2000 15:30 to 03/01/2000 15:30
tuesday
from 03/01/2000 15:30 à 04/01/2000 15:30

wednesday
off

thursday
from 05/01/2000 10:00 to 05/01/2000 12:00
thursday again 05/01/2000 14:00 to 05/01/2000 16:00
and so on...for staff2 and staff3...

Question : witch staff is available for patient x a who need a carer from 02/01/2000 15:30 to 04/01/2000 15:30

Note : carer mast be available all long of the duration of help
Thanks
Merci

Vinnie881
Master Smack Fu Yak Hacker

1231 Posts

Posted - 2007-11-18 : 17:52:32
???

What is the table structure?

Where is the patient information?

Go to Top of Page
   

- Advertisement -