inblog logo
|
goho
    SQL문제풀기

    오랜 기간 보호한 동물(1)

    gov's avatar
    gov
    Jan 07, 2025
    오랜 기간 보호한 동물(1)
    Contents
    문제풀이

    문제

    notion image
    notion image

    풀이

    입양 테이블의 datetime이 null 인 경우만 출력
    SELECT a.name, a.datetime from animal_ins a left join animal_outs b on a.animal_id = b.animal_id where b.datetime is null order by a.datetime limit 3;
    Share article

    goho

    RSS·Powered by Inblog