I am trying to pivot this table
timetableId, assignmentId, dateChecked, hoursWorked 1, 11, 2017-09-10, 5 2, 12, 201
The problem is here:
case when dateChecked = '10-09-2017'
Use YYYY-MM-DD format for your date comparisons, not MM-DD-YYYY.