[Programmers] SQL - 12세 이하인 여자 환자 목록 출력하기

DMIS·2024년 2월 11일
0

SQL

목록 보기
47/48
post-thumbnail

문제

풀이

select 
    pt_name,
    pt_no,
    gend_cd,
    age,
    coalesce(tlno, 'NONE') as TLNO
from patient
where age <= 12
    and gend_cd = 'W'
order by age desc, pt_name
profile
Data + Math

0개의 댓글