I have a what seems a simple question but I cannot workout how to do it.
Employee id | dev_time | pm_time
1 | 4 | 5
2 | 2 | 3
3 | 6 | 2
2 | 3 | 6
3 | 4 | 4
1 | 1 | 5
I have a table on my localhost that looks like this. How do I find out the total time (dev_time + pm_time) spent by each employee? I require both the SQL statement and the while/for/foreach loops solution
For example employee_id 1 has spent a total of 15hrs or employee_id 2 has spent a total of 14 hours
Thanks!!!!!