少なくとも50の場所がある場所のみを取得できるようにクエリを作成したいと思います。
場所の表があります:
Id, City, Country
1, Austin, USA
2, Paris, France
そして、Location_idによって場所に接続された場所の表
Id, Name, Details, Location_id
1, The Zoo, blah, 2
2, Big Park, blah, 2
私はそのようにそれらに参加することができます:
SELECT Places.name、places.id、locations.country、locations.city FROM Places INNER JOIN location ON Places.location_id = location.id
少なくとも50の場所がある都市の結果のみを取得し、それらを最大量で注文するにはどうすればよいですか?
ありがとう!