I have a query:
SELECT
t.emp_number,
t.date_created,
GROUP_CONCAT(t.time_stamp) as punch
FROM attendance_copy t
WHERE t.attendance_status like "%Punch%"
GROUP BY t.date_created
order by date_created,time_stamp
result set:
id date punch
IPPH0004 | 2021-10-01 | 01:00:00,09:26:03
IPPH0004 | 2021-10-02 | 08:00:00,11:00:00
and instead of comma separated cell, I want it as a column or cell, like so:
id date in out
IPPH0004 | 2021-10-01 | 01:00:00 | 09:26:03
IPPH0004 | 2021-10-02 | 08:00:00 | 11:00:00
is this possible? thanks.