[oracle] sql ์งํฉ ๋ช
๋ น์ด (union, union all, minus, intersect)
1. union select ํ๋๋ช
1, ํ๋๋ช
2 ... from ํ
์ด๋ธ๋ช
1 union select ํ๋๋ช
1, ํ๋๋ช
2 ... from ํ
์ด๋ธ๋ช
2; 2. union all select ํ๋๋ช
1, ํ๋๋ช
2 ... from ํ
์ด๋ธ๋ช
1 union all select ํ๋๋ช
1, ํ๋๋ช
2 ... from ํ
์ด๋ธ๋ช
2; union all์ ์ค๋ณต์ ํ์ฉํ๋ ํฉ์งํฉ์ด๋ค. 3. intersect ๊ต์งํฉ select ํ๋๋ช
1, ํ๋๋ช
2 ... from ํ
์ด๋ธ๋ช
1 intersect select ํ๋๋ช
1, ํ๋๋ช
2 ... from ํ
์ด๋ธ๋ช
2; 4. minus ์ฐจ์งํฉ select ํ๋๋ช
1, ํ๋๋ช
2 ... from ํ
์ด๋ธ๋ช
1 minus select ํ๋๋ช
1, ํ๋๋ช
2 ... from ํ
์ด๋ธ๋ช
2;
2021.10.15