I have two tables - countries
, tours
.
countries
has fields (id
),(name
),(order
)
tours
has fields (id
),(id_country
)...
I need to get the whole list of id
and name
from table countries
ordered by their order, and the count of records in table tours
, where tours
.id_country
= countries
.id
countries
.
Ie, i need to get such list
id name count_of_tours
1 France 15
2 England 22
.............................
Is it possible to do in one query?
Thanks much