GROUP BY function ret – Mysql
start end category 2022:10:14 17:13:00 2022:10:14 17:19:00 A 2022:10:01 16:29:00 2022:10:01 16:49:00 B 2022:10:19 18:55:00 2022:10:19 19:03:00 A 2022:10:31 07:52:00 2022:10:31 07:58:00 A 2022:10:13 18:41:00 2022:10:13 19:26:00 B The table is sample data about trips the target is to calculate…