1
I want to consult pilots sponsored by the 'A' team'
I’m doing like this:
SELECT piloto.nome AS NomePiloto
FROM equipe
INNER JOIN piloto
ON equipe.idequipe = piloto.idequipe
INNER JOIN patrocinador
ON patrocinador.idpat = equipe.idpat
WHERE patrocinador.nome = 'A'
But you’re not returning anything, where I’m going wrong?
which error returns? o
idpat
,idequipe
andnome
are actually written like this in the bank? in the image you presented, are likeID_PAT
,NOME_E
andNOME_P
.– Gabriel Gonçalves
In the links to be OK, but the problem may be in the data. Are you sure you have pilots associated with sponsored teams and teams named "A"?
– João Martins