mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
14 lines
425 B
SQL
14 lines
425 B
SQL
drop table IF EXISTS tab1;
|
|
drop table IF EXISTS tab1_copy;
|
|
|
|
create table tab1 (a1 Int32, b1 Int32) engine = MergeTree order by a1;
|
|
create table tab1_copy (a1 Int32, b1 Int32) engine = MergeTree order by a1;
|
|
|
|
insert into tab1 values (1, 2);
|
|
insert into tab1_copy values (2, 3);
|
|
|
|
select tab1.a1, tab1_copy.a1, tab1.b1 from tab1 any left join tab1_copy on tab1.b1 + 3 = tab1_copy.b1 + 2;
|
|
|
|
drop table tab1;
|
|
drop table tab1_copy;
|