Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- IntelliJ
- VirtualBox
- profile
- 단축키
- web.xml
- tomcat
- JavaScript
- Source
- ssh
- import
- GIT
- context
- find
- xargs
- Windows 10
- vscode
- Windows
- resource
- Eclipse
- grep
- 줄바꿈 문자
- bash
- plugin
- netsh
- port
- Mac
- 네트워크
- maVen
- Quartz
- lsof
Archives
- Today
- Total
develog
outer join test 본문
SELECT X.USER_SEQ, Y.SCORE1, Z.SCORE2
FROM
(
SELECT 'A' USER_SEQ FROM DUAL UNION ALL
SELECT 'B' USER_SEQ FROM DUAL UNION ALL
SELECT 'C' USER_SEQ FROM DUAL UNION ALL
SELECT 'D' USER_SEQ FROM DUAL UNION ALL
SELECT 'E' USER_SEQ FROM DUAL
) X
, (
SELECT 'A' USER_SEQ, '10' SCORE1 FROM DUAL UNION ALL
SELECT 'B' USER_SEQ, '20' SCORE1 FROM DUAL UNION ALL
SELECT 'E' USER_SEQ, '30' SCORE1 FROM DUAL
) Y
, (
SELECT 'B' USER_SEQ, '100' SCORE2 FROM DUAL UNION ALL
SELECT 'C' USER_SEQ, '220' SCORE2 FROM DUAL
) Z
WHERE 1=1
AND X.USER_SEQ = Y.USER_SEQ(+)
AND X.USER_SEQ = Z.USER_SEQ(+)
ORDER BY X.USER_SEQ
;
'DB > Oracle' 카테고리의 다른 글
split (0) | 2012.12.11 |
---|---|
oracle outer join or (0) | 2012.12.06 |
DROP, DELETE, TRUNCATE 차이점 (0) | 2012.04.10 |
Comment (0) | 2012.04.10 |
테이블 이름 변경 (0) | 2012.04.10 |
Comments