I have a table like this:
ID DepartmentID ShiftID Date EmployeeID
3198 9 2 2018-11-12 10011300
3234 9 1 2018-11-12 43354479
3235 8 1 2018-11-13 43354479
3199 9 2 2018-11-13 10011300
3200 9 2 2018-11-14 10011300
3236 8 1 2018-11-14 43354479
3237 8 1 2018-11-15 43354479
3201 9 2 2018-11-15 10011300
3202 9 2 2018-11-16 10011300
3238 8 1 2018-11-16 43354479
3239 9 2 2018-11-19 43354479
3203 9 3 2018-11-19 10011300
4274 17 0 2018-11-19 10045079
4275 8 1 2018-11-19 43354479
4276 9 3 2018-11-19 43354479
4277 8 2 2018-11-19 43354341
3270 17 0 2018-11-19 10026106
3273 9 2 2018-11-19 10004723
3271 0 1 2018-11-20 10026106
4308 9 3 2018-11-20 10045079
4278 1 2 2018-11-20 43354341
3204 9 2 2018-11-20 10011300
And I want to create a SP with the following output according to inputs parameters:
@StartDate Date,
@EndDate Date
EmplyeeID 10-11-2018 11-11-2018 12-11-2018 13-11-2018 14-11-2018 etc...
10011300 - - X X X
43354479 - - X X X
etc....
How can I do that?