Posts by Rey11 • 25 points
2 posts
-
1
votes1
answer98
viewsQ: Consult the names of the pilots sponsored by a Team
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…
-
1
votes1
answer1282
viewsQ: See the best-selling product
I’m having trouble joining two tables and using some aggregation function, I’ve tried it like this: SELECT nome FROM produto INNER JOIN vendaproduto SUM(quantidade) ON produto.idproduto =…