我已經follwing數據:要從組員工只能得到第一個記錄
emp_no emp_name login level HOD_NAME Assigend_IP LoggedIn_IP Attendece_Location Shift_Timing
E31446 Amit Singh 09:39 Direct P00212 172.29.23.53 172.29.23.53 CSO-Ackruti Star-6F 09:30-18:30
E31446 Amit Singh 09:39 Direct P00212 172.29.23.53 172.29.23.53 CSO-Ackruti Star-6F 09:30-18:30
E39787 Anita Haridas Shenoy 09:41 Indirect E31446 172.29.24.38 172.29.23.55 CSO-Ackruti Star-6F 09:30-18:30
E39787 Anita Haridas Shenoy 09:41 Indirect E31446 172.29.24.38 172.29.24.38 CSO-Ackruti Star-6F 09:30-18:30
E39787 Anita Haridas Shenoy 09:41 Indirect E31446 172.29.24.38 172.29.23.55 CSO-Ackruti Star-6F 09:30-18:30
E39787 Anita Haridas Shenoy 09:41 Indirect E31446 172.29.24.38 172.29.24.38 CSO-Ackruti Star-6F 09:30-18:30
E37731 Ramesh Shukla 09:40 Indirect E31446 172.29.23.43 172.29.23.43 CSO-Ackruti Star-6F 09:30-18:30
E37731 Ramesh Shukla 09:40 Indirect E31446 172.29.23.43 172.29.23.55 CSO-Ackruti Star-6F 09:30-18:30
E33995 Rakesh Sharma 08:21 Direct P00212 172.29.23.17 172.29.23.17 CSO-Ackruti Star-6F 09:30-18:30
E43130 Lubna Shaikh 09:37 Indirect E33995 172.29.23.54 172.29.23.54 CSO-Ackruti Star-6F 09:30-18:30
E43130 Lubna Shaikh 09:37 Indirect E33995 172.29.23.54 172.29.23.58 CSO-Ackruti Star-6F 09:30-18:30
E43130 Lubna Shaikh 09:37 Indirect E33995 172.29.23.54 172.29.23.54 CSO-Ackruti Star-6F 09:30-18:30
E43130 Lubna Shaikh 09:37 Indirect E33995 172.29.23.54 172.29.23.58 CSO-Ackruti Star-6F 09:30-18:30
E43455 Manish Shukla Indirect E33995 172.29.23.45 172.29.23.45 CSO-Ackruti Star-6F 09:30-18:30
E44920 Shweta Salve 09:18 Indirect E33995 172.29.23.55 172.29.23.55 CSO-Ackruti Star-6F 09:30-18:30
現在我想篩選以這種方式這個數據,這樣我就可以得到數據如下輸出:
emp_no emp_name login level HOD_NAME Assigend_IP LoggedIn_IP Attendece_Location Shift_Timing
E31446 Amit Singh 9:39 Direct P00212 172.29.23.53 172.29.23.53 CSO-Ackruti Star-6F 09:30-18:30
E39787 Anita Haridas Shenoy 9:41 Indirect E31446 172.29.24.38 172.29.23.55 CSO-Ackruti Star-6F 09:30-18:30
E37731 Ramesh Shukla 9:40 Indirect E31446 172.29.23.43 172.29.23.43 CSO-Ackruti Star-6F 09:30-18:30
E33995 Rakesh Sharma 8:21 Direct P00212 172.29.23.17 172.29.23.17 CSO-Ackruti Star-6F 09:30-18:30
E43130 Lubna Shaikh 9:37 Indirect E33995 172.29.23.54 172.29.23.54 CSO-Ackruti Star-6F 09:30-18:30
E43455 Manish Shukla Indirect E33995 172.29.23.45 172.29.23.45 CSO-Ackruti Star-6F 09:30-18:30
E44920 Shweta Salve 9:18 Indirect E33995 172.29.23.55 172.29.23.55 CSO-Ackruti Star-6F 09:30-18:30
輸出應該只包含每個員工的第一條記錄。 我該如何爲此編寫查詢?
你能告訴我們你已經嘗試了什麼? – hkf
@shweta:你如何決定哪一行是第一行? –
@ravi singh:每個員工第一排的第一排是員工的第一次登錄打卡,所以它取決於登錄時間。 – shweta