0
write a query to display day and the total_units of electricity consumed on each day between the dates '2018-05-06' and '2018-05
Sql
4 Réponses
0
SELECT day, unit, SUM(unit) AS total_units FROM tableName WHERE date BETWEEN startDate AND endDate
0
No it not working
0
Probably cause date is not working with between.