\!h DATETIME()
-- Example - date and time for all deliveries in the baked_goods table using the column delivery_time:
SELECT DATETIME(delivery_time)
FROM baked_goods;
\!h DATE()
-- Example - the number of baked_goods manufactured by day:
SELECT DATE(manufacture_time), count(*) as
count_baked_goods
FROM baked_goods
GROUP BY DATE(manufacture_time);
\!h TIME()
-- Same as above but querying just time:
SELECT TIME(manufacture_time), count(*) as
count_baked_goods
FROM baked_goods
GROUP BY TIME(manufacture_time);