I have a mysql database of the index of a course
(id,tipo,titulo,completado)
I keep the different types that make up the index (classes, exercises and exams). I need to know how many exercises, classes and exams the course has to do so:
SELECT COUNT() FROM indice_curso WHERE tipo=examen;
SELECT COUNT() FROM indice_curso WHERE tipo=clase;
SELECT COUNT() FROM indice_curso WHERE tipo=ejercicio;
But there are 3 queries, is it possible to do it in 1 query ?. Thank you very much !!