how to query 3 tables with different characters in Mysql

0

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
    
asked by Rodolfo Patiño 29.10.2018 в 04:50
source

1 answer

-2

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

    
answered by 29.10.2018 в 05:21