0
How Can I Do This Multiplication? the table looks like this:
What has to be done is to group disciplines 11 and 13, count how many 'sit' F and Null have and multiply by 'qntd_aula'... I managed to reach that select...
select d.id, d.nome, (count(sit) * f.qntd_aula)F, ((count(sit is null) - count(sit))* f.qntd_aula) P, qntd_aula from frequencia_aluno_dia2020 f, disciplina d where idpessoa = 62644 and d.id = f.iddisciplina group by d.id,qntd_aula;
but it is not grouped properly look..
How could I solve it? Leaving Lingua Portuguesa with F = 2 and P = 5.