You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/thecoddiwompler)
6
+
7
+
---
8
+
9
+
## 🛠️ Problem Statement
10
+
11
+
12
+
<b>Table Name : clocked_hours</b>
13
+
</br>
14
+
| Column Name |Type |
15
+
| ------------- | ------------- |
16
+
| empd_id | int |
17
+
| swipe | time |
18
+
| flag | char |
19
+
20
+
21
+
* <b> (empd_id, swipe) is the primary key for this table. </b><br/>
22
+
<br/>
23
+
24
+
This table provides empd_id (Employee ID), swipe time (swipe), and swipe type (flag). Flag can have only two values- 'I' and 'O' signifying Entry time and exit time.
25
+
<br/>
26
+
</br>
27
+
<b>Write a SQL query to find the total clocked time for each employees.</b>
28
+
</br>
29
+
<br/>
30
+
Return the result table in any order.
31
+
</br>
32
+
</br>
33
+
<b>The query result format is in the following example: </b>
0 commit comments