Created
October 29, 2013 11:40
presencas simplificado
This file contains hidden or 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 cae.caenome as nome, | |
cae.caecpf as cpf, | |
prc.perid, | |
SUM(frq.frqqtdpresenca) as qtdpresenca | |
FROM projovemurbano.cadastroestudante cae | |
INNER JOIN projovemurbano.frequenciaestudante frq ON frq.caeid = cae.caeid | |
INNER JOIN projovemurbano.diariofrequencia dif ON dif.difid = frq.difid | |
INNER JOIN projovemurbano.diario dia ON dia.diaid = dif.diaid | |
INNER JOIN projovemurbano.periodocurso prc USING(perid) | |
-- WHERE cae.caeid = 44327 | |
GROUP BY cae.caenome, | |
cae.caecpf, | |
prc.perid | |
limit 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment