The way i designed my working sheet doesn't help me to calculate working hours easily.
The output in snapshot has been gathered from multiple tables.
Don't worry regarding setDate and timeEntered formatting.
SetDate represents working day. tsTypeTitle represents type of shift, is it lunch time, etc. timeEntered represents the actual time.
setDate will have to be trimmed to have only Date and timeEntered should only show time - This will be handled later, don't worry about it.
I need to grab the difference between Shift Started and Shift Ended so i can calculate the wage.
Here is my query in case you want to look at it:
SELECT TimeSheet.setDate, TimeSheetType.tsTypeTitle, TimeSheetDetail.timeEntered
FROM TimeSheet
INNER JOIN TimeSheetDetail
ON TimeSheet.timeSheetID = TimeSheetDetail.timeSheetID
INNER JOIN TimeSheetType
ON TimeSheetType.timeSheetTypeID = TimeSheetDetail.timeSheetTypeID