Hristo Katsarski
05/16/2023, 8:27 AMImre
05/16/2023, 10:25 AMfirst()
, last()
select symbol, first(col1), first(col2), timestamp from table;
select symbol, last(col1), last(col2), timestamp from table;
(you can add GROUP BY clause but QuestDB can figure it out from the list of columns too as above)
• you can also try to use LATEST ON
instead of `last()`:
select symbol, col1, col2, timestamp from table latest on timestamp partition by symbol;
Nicolas Hourcard
05/16/2023, 10:59 AMHristo Katsarski
05/16/2023, 11:09 AMMaciej Bodek
05/16/2023, 12:01 PMHristo Katsarski
05/16/2023, 12:24 PMMaciej Bodek
05/16/2023, 12:25 PMHristo Katsarski
05/16/2023, 12:28 PMMaciej Bodek
05/17/2023, 12:02 PMSettings
panel for any tweaks you might need. If you have any problems, perhaps import to a new table first, and then you can click Details
button next to the upload status, to see detailed upload result.
Let me know if you have any issues, happy to explain further 👋