Skip to content

Instantly share code, notes, and snippets.

@kimki1124
Created March 8, 2017 12:36
Show Gist options
  • Save kimki1124/8b00b68ce1da12251bb413c3d9aabb76 to your computer and use it in GitHub Desktop.
Save kimki1124/8b00b68ce1da12251bb413c3d9aabb76 to your computer and use it in GitHub Desktop.
[ORACLE] SQL 함수 (날짜 함수, 변환 함수, NULL 관련 함수, 기타 함수)
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