答案 0 :(得分:1)
通常你会这样做一个JOIN:
SELECT rt.room_name AS Room, at.amenities_name AS Amenities FROM
link_table AS lt JOIN room_table AS rt ON lt.room_id = rt.room_id
JOIN amenities_table AS at ON lt.amenities_id = at.amenities_id;
得到这样的结果:
Room Amenities
--------------------
Room 101 WIFI
Room 101 A/C
... ...
Room 102 A/C
... ...