[ MYSQL ] ✅✅ Simple MYSQL Solution Using Group By || SUM🥳✌👍
If you like the solution, please upvote! \uD83D\uDD3C\uD83D\uDE4F\n# Runtime: 611 ms, faster than 40.62% of MySQL online submissions for Find Total Time Spent b
# If you like the solution, please upvote! \uD83D\uDD3C\uD83D\uDE4F\n# Runtime: 611 ms, faster than 40.62% of MySQL online submissions for Find Total Time Spent by Each Employee.\n# Memory Usage: 0B, less than 100.00% of MySQL online submissions for Find Total Time Spent by Each Employee.\n\n\tSELECT event_day AS \'day\',\n\temp_id AS \'emp_id\', \n\tsum(out_time - in_time) AS \'total_time\'\n\tFROM Employees\n\tGROUP BY event_day , emp_id
['MySQL']