inblog logo
|
stupefyee
    SQL문제풀기

    [SQL 문제 풀이] 12세 이하인 여자 환자 목록 출력하기

    Stupefyee's avatar
    Stupefyee
    Nov 16, 2024
    [SQL 문제 풀이] 12세 이하인 여자 환자 목록 출력하기
    notion image
    💡
    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 ASC;
     
    Share article

    stupefyee

    RSS·Powered by Inblog