I don't seem to be very good with CTE's and setting them up. I understand them but they are just outside of my skill set for creating my own for the purpose i need. I have a table with the Following design
AbsenceID|AbsenceStart|AbsenceEnd|AbsenceType|AbsenceTypeID|StaffCode
222 |01/01/2013 |03/01/2013|FD |1 |WWF
I've established that a CTE could split the data as needed which would essentially create 3 lines. One for each date returning for example the below
AbsenceID|Absencedate|AbsenceType|AbsenceTypeID|StaffCode
222 |01/01/2013 |FD |1 |WWF
223 |02/01/2013 |FD |1 |WWF
224 |03/01/2013 |FD |1 |WWF