Está en la página 1de 1

PROFESORA: LIC.

TAYDE NANCY CHORA PORTILLA


ASIGNATURA: BASE DE DATOS
CARRERA: ING. EN SISTEMAS Y COMUNICACIONES
ALUMNO: Osvaldo Hernández Gaytán

CREATE DEFINER =`root`@`localhost` PROCEDURE `INFO_PERIODO`(x varchar(45))


BEGIN
SELECT registro_semestre.matricula, alumno.Nombre,alumno.apellido_P,alumno.apellido_m,
registro_semestre.Periodo, registro_semestre.Total_Materias,
registro_semestre.Total_Materias_Aprobadas,
registro_semestre.Total_Materias_Reprobadas,
registro_semestre.Total_Creditos, registro_semestre.promedio_semestre
FROM registro_semestre, alumno, periodo
where registro_semestre.Matricula=alumno.Matricula and
registro_semestre.Periodo=periodo.id_Periodo
and registro_semestre.Matricula=x;
END

También podría gustarte