NULLSQLD(SQL 개발자) 기출 · NULL다음 보기의 SQL문을 실행 했을 때 결괏값이 다른 하나는?이 문제 풀어보기1.select NVL(a.COL1,-1) as data from Mytest a;2.select DECODE(a.COL1, null,-1,a.col1) as data from Mytest a;3.select case when a.COL1 is null then -1 else 0 end as data from Mytest a;4.select case a.COL1 when null then -1 else 0 end as data from Mytest a;정답 및 해설 보기정답: 4번나머지 보기는 모두 COL1 값이 NULL일 때 -1을 반환하는데 ④번 보기만 COL1값이 NULL일 때 0 을 반환한다. 즉, CASE문으로 NULL을 비교할 때 알수 없음이 된다.