inblog logo
|
silver
    SQL문제풀기

    [SQL문제풀기] Matching Similar Hosts and Guests

    silver's avatar
    silver
    Jan 27, 2026
    [SQL문제풀기] Matching Similar Hosts and Guests
    Contents
    문제내가 작성한 정답

    문제

    StrataScratch - Matching Similar Hosts and Guests
    StrataScratch
    StrataScratch - Matching Similar Hosts and Guests
    https://platform.stratascratch.com/coding/10078-find-matching-hosts-and-guests-in-a-way-that-they-are-both-of-the-same-gender-and-nationality/official-solution?code_type=1

    내가 작성한 정답

    MySQL, PostgreSQL, Oracle

    select distinct h.host_id, g.guest_id from airbnb_hosts h join airbnb_guests g on h.nationality = g.nationality and h.gender = g.gender order by 1;
    Share article
    Contents
    문제내가 작성한 정답

    silver

    RSS·Powered by Inblog