Created
March 8, 2017 12:36
[ORACLE] SQL 함수 (날짜 함수, 변환 함수, NULL 관련 함수, 기타 함수)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT PROD_ID, | |
DECODE(CHANNEL_ID, 3, 'Direct', | |
9, 'Direct', | |
5, 'Indirect', | |
4, 'Indirect', | |
'Others') DECODES | |
FROM SALES | |
WHERE ROWNUM < 10; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment