COMO ELABORAR UN QUERY EN POSGRESQL EN DONDE SE GENERE UN REPORTE EN DONDE ME INDIQUE EL…
Jump to turn (9)
- 1COMO ELABORAR UN QUERY EN POSGRESQL EN DONDE SE GENERE UN REPORTE EN DONDE ME IN
- 2COMO ELABORAR UN QUERY EN POSGRESQL EN DONDE SE GENERE UN REPORTE EN DONDE ME IN
- 3MOSTRAR EJEMPLO DE COMO ELABORAR UN QUERY EN POSGRESQL EN DONDE SE GENERE UN REP
- 4COMO USAR PIVOT Y UNPIVOT EN SQL
- 5EJEMPLOS DE COMO USAR PIVOT Y UNPIVOT EN POSGRESQL
- 6EJEMPLOS DE SENTENCIAS EN POSGRESQL EMPLEANDO PIVOT
- 7como elaborar un query en posgresql en donde se genere un reporte de estudiantes
- 8EJEMPLOS DE LA SENTENCIA SUM Y CASE PARA ELABORAR REPORTES DE 4 O 5 COLUMNAS
- 9PORQUE EN UNA CONSULTA EN POSGRESQL EMPLEANDO LA CONSULTA SUM (CASE WHEN ade.idp
- User
COMO ELABORAR UN QUERY EN POSGRESQL EN DONDE SE GENERE UN REPORTE EN DONDE ME INDIQUE EL TOTAL DE ESTUDIANTES POR LICENCIATURA Y TURNO
- Assistant
Para obtener el total de estudiantes por licenciatura y turno en PostgreSQL, puedes usar la cláusula GROUP BY para agrupar los resultados por licenciatura y turno, y la función COUNT para contar el número de estudiantes en cada grupo. Aquí tienes un ejemplo de cómo podría ser el query:
sqlSELECT licenciatura, turno, COUNT(estudiante_id) as total_estudiantes FROM tabla_estudiantes GROUP BY licenciatura, turno;Donde
tabla_estudianteses el nombre de la tabla donde se almacenan los datos de los estudiantes,licenciaturaes el campo que indica la licenciatura yturnoes el campo que indica el turno.Este query te dará un reporte que muestra el total de estudiantes por licenciatura y turno.