출처: https://astrocosmos.tistory.com/202 [ASTROCOSMOS:티스토리] SQL SELECT] 프로그래머스_3월에 태어난 여성 회원 목록 출력하기 :: 하나둘셋넷
728x90

3월에 태어난 여성 회원 목록 출력하기

-- 코드를 입력하세요
SELECT MEMBER_ID, MEMBER_NAME, GENDER, DATE_FORMAT(DATE_OF_BIRTH,"%Y-%m-%d") AS DATE_OF_BIRTH

    FROM MEMBER_PROFILE
    
    WHERE MONTH(DATE_OF_BIRTH)=3 AND GENDER = 'W' AND TLNO IS NOT NULL
    
    ORDER BY MEMBER_ID ASC;
728x90

+ Recent posts