[국비] SQL 내용정리 Day02
NULL 제거 함수 NVL(컬럼, 변환할 타겟 값) SELECT null FROM dual; SELECT NVL(null, 0) FROM dual; SELECT first_name, NVL(commission_pct, 0) AS comm_pct FROM employees; NULL 제거 함수 NVL2(컬럼, null이 아닐 경우 값, null일 경우 값) SELECT NVL2(null, '널아님', '널') FROM dual; SELECT NVL2(50, '널아님', '널') FROM dual; SELECT first_name, NVL2(commission_pct, 'true', 'false') FROM employees; SELECT first_name, commission_pct, NVL2(commi..
2021. 12. 7.