Hi I have the below timecard structure on our system.

From the above timecard I need to generate a report that compares start from time_in AND end from time_out and group it by emp_id.

Any hint on how can I display it like the above would be great.
The following query does the job.
If results can be negative (time_in/time_out can be smaller than start/end), you should set 0 to a value that is always smaller than the difference.