hello guys
i need your opinion on the problem i have. i have a db table that contains start time for a shift, end time for a shift, the day that the worker wants to work that particular shift, as well as their name.
i.e
Joe Monday 8:00 13:00
the work begins at 8am and ends at 11pm, and the schedule is made on half hour intervals, someone can work only from 8:00 til 8:30, 10:30 til 13:30, and such.
the schdule i am trying to make would be something like this:
Mon Tue Wed ...
8:00-8:30 Joe
8:30-9:00 Joe
...
22:30-23:00 ...
i would like to hear what would you think the most efficient way to solve this would be. i have been trying to do it with arrays, i failed; i tried sql, i never got around to finish it. maybe you can suggest some ideas, as i am willing to listen.
thanks a lot in advance
vlada
i need your opinion on the problem i have. i have a db table that contains start time for a shift, end time for a shift, the day that the worker wants to work that particular shift, as well as their name.
i.e
Joe Monday 8:00 13:00
the work begins at 8am and ends at 11pm, and the schedule is made on half hour intervals, someone can work only from 8:00 til 8:30, 10:30 til 13:30, and such.
the schdule i am trying to make would be something like this:
Mon Tue Wed ...
8:00-8:30 Joe
8:30-9:00 Joe
...
22:30-23:00 ...
i would like to hear what would you think the most efficient way to solve this would be. i have been trying to do it with arrays, i failed; i tried sql, i never got around to finish it. maybe you can suggest some ideas, as i am willing to listen.
thanks a lot in advance
vlada