I have a large sheet of data where i have swipe details of access card for a given month.
Considering the team size is too big, data may be upto 20000 Rows.
The format of the data is something like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Event No[/TD]
[TD]Device Time[/TD]
[TD]Emp No[/TD]
[TD]Emp Name[/TD]
[TD]Card No[/TD]
[TD]Event ID[/TD]
[TD]Event Description[/TD]
[TD]Controller Name[/TD]
[/TR]
[TR]
[TD]12364[/TD]
[TD]05/08/2018 12:43:00[/TD]
[TD]9820[/TD]
[TD]Samuel[/TD]
[TD]890653[/TD]
[TD]617[/TD]
[TD]Exit Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12386[/TD]
[TD]05/08/2018 11:56:00[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]890731[/TD]
[TD]617[/TD]
[TD]Exit Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12346[/TD]
[TD]05/08/2018 11:01:00[/TD]
[TD]9820[/TD]
[TD]Samuel[/TD]
[TD]890653[/TD]
[TD]616[/TD]
[TD]Entry Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12394[/TD]
[TD]05/08/2018 10:57:00[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]890731[/TD]
[TD]616[/TD]
[TD]Entry Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12304[/TD]
[TD]05/08/2018 10:13:00[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]890731[/TD]
[TD]617[/TD]
[TD]Exit Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12306[/TD]
[TD]05/08/2018 10:04:00[/TD]
[TD]9820[/TD]
[TD]Samuel[/TD]
[TD]890653[/TD]
[TD]617[/TD]
[TD]Exit Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12378[/TD]
[TD]05/08/2018 09:59:00[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]890731[/TD]
[TD]616[/TD]
[TD]Entry Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12332[/TD]
[TD]05/08/2018 09:15:00[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]890731[/TD]
[TD]617[/TD]
[TD]Exit Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12320[/TD]
[TD]05/08/2018 08:30:00[/TD]
[TD]9820[/TD]
[TD]Samuel[/TD]
[TD]890653[/TD]
[TD]616[/TD]
[TD]Entry Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12390[/TD]
[TD]05/08/2018 08:20:00[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]890731[/TD]
[TD]616[/TD]
[TD]Entry Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
</tbody>[/TABLE]
Where i need to find the following details:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Emp No[/TD]
[TD]Emp Name[/TD]
[TD]First Entry Granted[/TD]
[TD]Last Exit Granted[/TD]
[TD]Total Hours inside office[/TD]
[TD]Number of times person did Tailgating [/TD]
[/TR]
[TR]
[TD]05/08/2018[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]??[/TD]
[TD]??[/TD]
[TD]??[/TD]
[TD]??[/TD]
[/TR]
[TR]
[TD]05/08/2018[/TD]
[TD]9820[/TD]
[TD]Samuel[/TD]
[TD]??[/TD]
[TD]??[/TD]
[TD]??[/TD]
[TD]??[/TD]
[/TR]
</tbody>[/TABLE]
I am struggling to get the first entry and last exit data. Any help on this will be highly appreciated.
Considering the team size is too big, data may be upto 20000 Rows.
The format of the data is something like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Event No[/TD]
[TD]Device Time[/TD]
[TD]Emp No[/TD]
[TD]Emp Name[/TD]
[TD]Card No[/TD]
[TD]Event ID[/TD]
[TD]Event Description[/TD]
[TD]Controller Name[/TD]
[/TR]
[TR]
[TD]12364[/TD]
[TD]05/08/2018 12:43:00[/TD]
[TD]9820[/TD]
[TD]Samuel[/TD]
[TD]890653[/TD]
[TD]617[/TD]
[TD]Exit Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12386[/TD]
[TD]05/08/2018 11:56:00[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]890731[/TD]
[TD]617[/TD]
[TD]Exit Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12346[/TD]
[TD]05/08/2018 11:01:00[/TD]
[TD]9820[/TD]
[TD]Samuel[/TD]
[TD]890653[/TD]
[TD]616[/TD]
[TD]Entry Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12394[/TD]
[TD]05/08/2018 10:57:00[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]890731[/TD]
[TD]616[/TD]
[TD]Entry Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12304[/TD]
[TD]05/08/2018 10:13:00[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]890731[/TD]
[TD]617[/TD]
[TD]Exit Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12306[/TD]
[TD]05/08/2018 10:04:00[/TD]
[TD]9820[/TD]
[TD]Samuel[/TD]
[TD]890653[/TD]
[TD]617[/TD]
[TD]Exit Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12378[/TD]
[TD]05/08/2018 09:59:00[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]890731[/TD]
[TD]616[/TD]
[TD]Entry Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12332[/TD]
[TD]05/08/2018 09:15:00[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]890731[/TD]
[TD]617[/TD]
[TD]Exit Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12320[/TD]
[TD]05/08/2018 08:30:00[/TD]
[TD]9820[/TD]
[TD]Samuel[/TD]
[TD]890653[/TD]
[TD]616[/TD]
[TD]Entry Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
[TR]
[TD]12390[/TD]
[TD]05/08/2018 08:20:00[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]890731[/TD]
[TD]616[/TD]
[TD]Entry Granted[/TD]
[TD]IVS/RTY/GGN/DLXXX001[/TD]
[/TR]
</tbody>[/TABLE]
Where i need to find the following details:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Emp No[/TD]
[TD]Emp Name[/TD]
[TD]First Entry Granted[/TD]
[TD]Last Exit Granted[/TD]
[TD]Total Hours inside office[/TD]
[TD]Number of times person did Tailgating [/TD]
[/TR]
[TR]
[TD]05/08/2018[/TD]
[TD]9860[/TD]
[TD]Smith[/TD]
[TD]??[/TD]
[TD]??[/TD]
[TD]??[/TD]
[TD]??[/TD]
[/TR]
[TR]
[TD]05/08/2018[/TD]
[TD]9820[/TD]
[TD]Samuel[/TD]
[TD]??[/TD]
[TD]??[/TD]
[TD]??[/TD]
[TD]??[/TD]
[/TR]
</tbody>[/TABLE]
I am struggling to get the first entry and last exit data. Any help on this will be highly appreciated.