Working in MonetDB, I have an 'entrytime' column that contains a time value. I have:
select "minute"(entrytime) as unitTime, period
from schema1.zones
where date1 >= eDate and date1 <= xDate and id=256
group by unitTime, period
But I want to group the results on a 15 minute boundary, and then return the greatest 'period' value for that 15 minute block, any ideas?
Thanks.