Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
21
Task/Hash-join/DuckDB/hash-join.duckdb
Normal file
21
Task/Hash-join/DuckDB/hash-join.duckdb
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
create or replace table people (age decimal(3), name varchar(30));
|
||||
insert into people (age, name)
|
||||
select 27, 'Jonah' union all
|
||||
select 18, 'Alan' union all
|
||||
select 28, 'Glory' union all
|
||||
select 18, 'Popeye' union all
|
||||
select 28, 'Alan'
|
||||
;
|
||||
|
||||
create or replace table nemeses (name varchar(30), nemesis varchar(30));
|
||||
insert into nemeses (name, nemesis)
|
||||
select 'Jonah', 'Whales' union all
|
||||
select 'Jonah', 'Spiders' union all
|
||||
select 'Alan' , 'Ghosts' union all
|
||||
select 'Alan' , 'Zombies' union all
|
||||
select 'Glory', 'Buffy'
|
||||
;
|
||||
|
||||
select * from people join nemeses using(name);
|
||||
|
||||
explain select * from people join nemeses using(name);
|
||||
Loading…
Add table
Add a link
Reference in a new issue