Posts by user131478 • 1 point
1 post
-
0
votes1
answer71
viewsA: SQL group records by time
Failed to enter the "num_veh" column in your sub-select SELECT grupos, SUM(num_veh) as quantidade FROM ( SELECT num_veh, ( CASE WHEN DATE_FORMAT(time, '%H:%i:%s') > '00:00' &&…