WITH A AS (
SELECT 1 AS C_1 FROM DUAL
UNION ALL
SELECT 2 FROM DUAL
UNION ALL
SELECT 3 FROM DUAL
),
B AS (
SELECT 3 C_1 FROM DUAL
UNION ALL
SELECT 4 FROM DUAL
)
A TABLE
1
2
3
B TABLE
3
4
결과값
1
2
3
4
SELECT C_1 FROM A
UNION
SELECT C_1 FROM B
UNION하 않고 결과값을 얻을수 있는 방법이 뭘까요?
|