0
I need to solve a simple exercise asking to inform the amount of books sold between 13h and 17h30 of all dates.
I was able to pull between 1:00 and 5:00 but not with the minutes "5:30".
I did so:
SELECT SUM(quantidade)
FROM notafiscal WHERE extract(hour FROM data_compra) BETWEEN 13 AND 17;
I tried using hour_minute instead of hour and by '17:30' but returns as null any result.
What is the type of column?
– Francisco