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

silver's avatar
Jan 27, 2026
[SQL문제풀기] Matching Similar Hosts and Guests

문제

내가 작성한 정답

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

silver