apla / node-clickhouse

Yandex ClickHouse driver for nodejs
MIT License
216 stars 50 forks source link

How to join tables by range of number #29

Closed alvin85 closed 5 years ago

alvin85 commented 5 years ago

Hi, is there a way to do this kind of join in Clickhouse?

select * from tableA a left join tableB b on a.mynumber between b.rangefrom and b.rangeto

Thanks.