inblog logo
|
goho
    SQL문제풀기

    12세 이하인 여자 환자 목록 출력하기

    gov's avatar
    gov
    Dec 31, 2024
    12세 이하인 여자 환자 목록 출력하기
    Contents
    문제풀이

    문제

    notion image
    notion image

    풀이

    • 전화번호가 NULL일 경우 ‘NONE’ 그대로 입력해야 함(소문자x)
    SELECT pt_name, pt_no, gend_cd, age, ifnull(tlno, 'NONE') as tlno from patient where age <= 12 and gend_cd = 'W' order by age desc, pt_name;
    Share article

    goho

    RSS·Powered by Inblog