The document contains 6 SQL queries: 1) Counts total votes grouped by vote. 2) Counts total votes grouped by vote and program name. 3) Counts total votes grouped by vote, program name, and semester enrolled. 4) Counts total votes grouped by vote and gender for females. 5) Counts total votes grouped by vote and gender for males. 6) Counts total votes grouped by vote for students over 20 years old.
The document contains 6 SQL queries: 1) Counts total votes grouped by vote. 2) Counts total votes grouped by vote and program name. 3) Counts total votes grouped by vote, program name, and semester enrolled. 4) Counts total votes grouped by vote and gender for females. 5) Counts total votes grouped by vote and gender for males. 6) Counts total votes grouped by vote for students over 20 years old.
The document contains 6 SQL queries: 1) Counts total votes grouped by vote. 2) Counts total votes grouped by vote and program name. 3) Counts total votes grouped by vote, program name, and semester enrolled. 4) Counts total votes grouped by vote and gender for females. 5) Counts total votes grouped by vote and gender for males. 6) Counts total votes grouped by vote for students over 20 years old.
Consultas presentadas por Adrian yiulino Pernett caballero
1) SELECT voto,COUNT(voto)as total from estudiantes GROUP by voto;
2) SELECT voto, nombreprograma,COUNT(voto)as total from estudiantes
NATURAL JOIN tiene NATURAL JOIN facultad NATURAL JOIN programa GROUP by voto,nombreprograma; 3) SELECT voto, semestre_cursado, nombreprograma,COUNT(*)as total from estudiantes NATURAL JOIN tiene NATURAL JOIN facultad NATURAL JOIN programa GROUP by voto,nombreprograma,semestre_cursado;
4) SELECT voto,genero,COUNT(voto)as total from estudiantes GROUP by
voto,genero having genero="Femenino"; 5) SELECT voto,genero,COUNT(voto)as total from estudiantes GROUP by voto,genero having genero="Masculino";
6) SELECT voto ,edad,COUNT(voto)as total from estudiantes GROUP by voto