MySQL stuck at time...
This is the beginning of my code: At the end you can see the question I am stuck at... SET time_zone = 'America/New_York'; create database mileage; use mileage; create table fillups ( id int not null primary key auto_increment, date_time datetime, volume dec(7, 3), vehicle_id int, odometer int, mpg dec(7, 2), total_cost dec(7, 2), price_per_gal dec(7, 3), is_partial int, `restart` int ); â Write a SQL query that will show how many times gas was pumped for any given hour of the day that gas was pumped. SELECT cast (date_time as date), datepart (hour, date_time), count(1) [sales count] from fillups group by cast (date_time as date), datepart (hour, date_time) order by 1, 2; But of course it donât work. I tried different things, but nothing really comes to mind how else I can do it. For any hints or suggestions I would really appreciate.