MySQL Join Query (possible two inner joins)
问题 I currently have the following: Table Town: id name region Table Supplier: id name town_id The below query returns the number of suppliers for each town: SELECT t.id, t.name, count(s.id) as NumSupplier FROM Town t INNER JOIN Suppliers s ON s.town_id = t.id GROUP BY t.id, t.name I now wish to introduce another table in to the query, Supplier_vehicles. A supplier can have many vehicles: Table Supplier_vehicles: id supplier_id vehicle_id Now, the NumSupplier field needs to return the number of