I must make a query that shows the number of clients per country.
I already have the Country (IdPais, Name) and Client (CustomerID, Name, IdPais) tables, but when I try to do it, I get the error:
"Incorrect syntax near '*'. Expecting HOLDLOCK, or ID".
Here is the code:
Select
Cliente.Nombre, Cliente.IdPais
from
Cliente
left outer join
Pais
count(*) on
Pais.IdPais = Cliente.IdPais
group by
Cliente.idCliente,Cliente.IdPais
Thanks in advance.