HOW to SELECT data basing on both a period of date and a period of time in clickhouse
问题 I want to filter some data by both yyyymmdd (date) and hhmmss (time), but clickhouse don't support time type. So I choose datetime to combine them. But how to do such things: This is code of dolphindb (which supports second type to represent hhmmss . select avg(ofr + bid) / 2.0 as avg_price from taq where date between 2007.08.05 : 2007.08.07, time between 09:30:00 : 16:00:00 group by symbol, date This is code of clickhouse , but a logical problematic code. SELECT avg(ofr + bid) / 2.0 AS avg