문제
풀이
- NULL인 값 제외하고 출력
WHERE (컬럼명) IS NOT NULL
SELECT MEMBER_ID, MEMBER_NAME, GENDER, DATE_FORMAT(DATE_OF_BIRTH, '%Y-%m-%d') AS DATE_OF_BIRTH
FROM MEMBER_PROFILE
WHERE (DATE_FORMAT(DATE_OF_BIRTH, '%m') = '03') AND (GENDER = 'W') AND (TLNO IS NOT NULL)
ORDER BY MEMBER_ID;
728x90