Posted on: 6/30/2011 10:59:27 AM | Views : 404

I have a database that contains the following definitions:
Shiftcode char(1)
FirstDay (datetime)
LastDay (datetime)
DayNight (bit) (0 for day, 1 for night)
The following is a sample of data:
D 2011-07-02 2011-07-05 0
D 2011-07-10 2011-07-13 1
D 2011-07-18 2011-07-21 0
D 2011-07-26 2011-07-29 1
B 2011-07-02 2011-07-05 1
B 2011-07-10 2011-07-13 0
B 2011-07-18 2011-07-21 1
B 2011-07-26 2011-07-29 0
X 2011-07-02 2011-07-05 0
X 2011-07-10 2011-07-13 0
X 2011-07-18 2011-07-21 0
X 2011-07-26 2011-07-29 0
Y 2011-07-06 2011-07-09 0
Y 2011-07-14 2011-07-17 0
Y 2011-07-22 2011-07-25 0
Y 2011-07-30  ...

Go to the complete details ...