I want to select a maximum of items from a table over the next 5, 10, 30 minutes, etc. I suspect this is not possible with multiple elements in the where clause. Using both normal < and </: fails. My code / request is below:
`select max price from dat where time</: (09:05:00; 09:10:00; 09:30:00)`
Any ideas what I'm doing wrong here? The idea is to get the maximum price for each row in the next 5, 10, 30 ... minutes of time in this row, and not just the 3 maximum prices in the entire table.
select max price from dat where time</: time+\:(5 10 30)
This will not work, but should give a general idea.
To clarify, I want to calculate the maximum price at 5, 10, 30 minute intervals from the time [i] of each row of the table. Therefore, for each table, the maximum price is within x + 5, x + 10, x + 30 minutes, where x is the time record in this row.
source share