Sign in
apache
/
tajo
/
f115833b9ff97a178febf3753f516888a3161af7
/
.
/
tajo-core-tests
/
src
/
test
/
resources
/
queries
/
TestUnionQuery
/
testLeftUnionWithJoin.sql
blob: 83c5f2f54ef67043dc8ea5b71947c39786bd5923 [
file
] [
log
] [
blame
]
select
*
from
(
select
a
.
id
,
b
.
c_name
,
a
.
code
from
(
select
l_orderkey
as
id
,
'lineitem'
as
code
from
lineitem
union
all
select
o_orderkey
as
id
,
'order'
as
code
from
orders
)
a
join
customer b
on
a
.
id
=
b
.
c_custkey
)
c
order
by
id
,
code