I am having SQL table where the records of the employee on daily basis are stored/saved I would like to get that result in tabular format
Consider a Table As Shown Below
Consider the following, which uses application code to handle the pivoting/rearrangement of an array...
Outputs:
Array
(
[Catherine] => Array
(
[in] => 2019-07-07 10:10:00
[lunch] => 2019-07-07 14:30:00
[out] => 2019-07-07 18:30:00
)
[John] => Array
(
[in] => 2019-07-07 10:00:00
[lunch] => 2019-07-07 13:00:00
[out] => 2019-07-07 18:00:00
)
[William] => Array
(
[in] => 2019-07-07 19:14:00
)
)