good evening someone can help me telling me how to make this query please
show the number of people who live in "Germany" and who study "Frances"
my tables are
estudiantes
-id
-nombre
-idpais
-ididioma
pais
-idpais
-pais
idioma
-ididioma
-idioma
good evening someone can help me telling me how to make this query please
show the number of people who live in "Germany" and who study "Frances"
my tables are
estudiantes
-id
-nombre
-idpais
-ididioma
pais
-idpais
-pais
idioma
-ididioma
-idioma
you should study the aggregation functions:
select idioma, pais, count(*) from pais p
inner join estudiantes e on p.idpais = e.idpais
inner join idioma i on e.ididioma = i.ididioma
where p.pais='Germany'
and i.idioma='Frances'
group by i.idioma, p.pais
Greetings