방법1 - union 외부에서
select
a.*,
(selec name from table_c where a = a.a) name
from (
select a, b, c from table_a
union all
select a, b, c from table_b
) a
방법2 - union 내부에서
select
a.*
from (
select a, b, c
(selec name from table_c where a = a.a) name
from table_a a
union all
select a, b, c
(selec name from table_c where a = b.a) name
from table_b b
) w
안녕하세요
위 쿼리 처럼 union 내에서 조인하는것과 외부에서 조인하는것의 차이가 궁금합니다~
그리고 위 두개의 차이를 확인하는 방법은 단순 초 확인밖에 없을까요?!