2
I have a table called cad_faltas
, he owns the fields:
id int(11)
id_cad_alunos int(11)
falta varchar(8)
idcurso int(11)
The field falta
receives the data MISSING and/or PRESENT. The question is, is there any possibility to do a count of records that are as "MISSING" for each idcurso
and also know the percentage of records with this information?
Example:
For the course of "id" 2 there are three records like "ABSENT" which are 50% of all records for this "id" 2.