Joined Table
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
create table t1 (col1 integer);
create table t2 (col1 integer);
insert into t1 (col1) values
(2),
(3),
(4);
insert into t2 (col1) values
(1),
(2),
(2),
(3); select t1.col1, t2.col1
from t1 inner join t2
on t2.col1 = t1.col1
order by 1,2; select t1.col1, t2.col1
from t1 left outer join t2
on t2.col1 = t1.col1
order by 1,2; select t1.col1, t2.col1
from t1 right outer join t2
on t2.col1 = t1.col1
order by 1,2; select t1.col1, t2.col1
from t1 full outer join t2
on t2.col1 = t1.col1
order by 1,2; select t1.col1, t2.col1
from t1 cross join t2
order by 1, 2;