I have a table like
A int,
B int,
C timestamp
and there are multiple rows where B and C are same but A is different. How can select one of the rows only (with any of A values) per each (B, C) unique pair in QuestDB?
If I had window function support I would
select A, B, C from (
select A, B, C,
row_number() OVER (partition by B, C) as rownum
from tbl) temp
where temp.rownum = 1
but unfortunately window functions are not supported in QuestDB