Created
December 9, 2017 19:35
-
-
Save vxf/00d7ab5c805138a5bb2453bed9630434 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT Aluno.numero, Aluno.nome, SUM(Classificacao.nota >= 10.0) FROM Aluno | |
JOIN Classificacao ON Classificacao.id_aluno=Aluno.id | |
JOIN UC ON UC.id=Classificacao.id_uc and UC.id_area=1 | |
GROUP BY Aluno.id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment