Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Hash-join/SQL/hash-join-1.sql
Normal file
19
Task/Hash-join/SQL/hash-join-1.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
-- setting up the test data
|
||||
|
||||
create table people (age number(3), name varchar2(30));
|
||||
insert into people (age, name)
|
||||
select 27, 'Jonah' from dual union all
|
||||
select 18, 'Alan' from dual union all
|
||||
select 28, 'Glory' from dual union all
|
||||
select 18, 'Popeye' from dual union all
|
||||
select 28, 'Alan' from dual
|
||||
;
|
||||
|
||||
create table nemesises (name varchar2(30), nemesis varchar2(30));
|
||||
insert into nemesises (name, nemesis)
|
||||
select 'Jonah', 'Whales' from dual union all
|
||||
select 'Jonah', 'Spiders' from dual union all
|
||||
select 'Alan' , 'Ghosts' from dual union all
|
||||
select 'Alan' , 'Zombies' from dual union all
|
||||
select 'Glory', 'Buffy' from dual
|
||||
;
|
||||
1
Task/Hash-join/SQL/hash-join-2.sql
Normal file
1
Task/Hash-join/SQL/hash-join-2.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
select /*+ use_hash */ * from people join nemesises using(name);
|
||||
Loading…
Add table
Add a link
Reference in a new issue