SELECT hotel.hotel_id, hotel.hotel_name, hotel.hotel_address, hotel.hotel_pic,
room_accommodation.room_full_price
FROM hotel
INNER JOIN room_accommodation ON (room_accommodation.hotel_id = hotel.hotel_id )
INNER JOIN (
SELECT MIN( room_full_price ) AS minPrice
FROM room_accommodation INNER JOIN hotel ON (
hotel.hotel_id =room_accommodation.hotel_id )
WHERE hotel.hotel_address LIKE '%bangkok%'
)room_accommodation ON room_accommodation.room_full_price = room_accommodation.minPrice
这条SQL可以查询每家酒店在曼谷房价最低的每家酒店
但问题是现在我想查询每家酒店的所有最低价格但是当我削减时
结果出来的条件只给了我所有酒店的最低价格
有什么问题,我应该怎么做才能存档
请指教
预先感谢。