Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE OR REPLACE VIEW esq_ceac_planclase.v_syllabus_materia_malla AS
- SELECT row_number() OVER ()::numeric AS idregistro,
- tbl_syllabus.idregistro AS idsyllabus,
- tbl_syllabus.id_materia,
- tbl_syllabus.id_periodo_academico,
- tbl_syllabus.codigo,
- tbl_syllabus.tipo_materia,
- tbl_syllabus.tipo_syllabus,
- tbl_syllabus.fecha_creacion,
- tbl_syllabus.id_personal_aprueba,
- tbl_syllabus.estado,
- tbl_syllabus_docente_informacion.id_personal,
- tbl_syllabus_docente_informacion.email_institucional,
- tbl_syllabus_mallas.id_malla,
- tbl_syllabus_mallas.id_escuela,
- escuela.nombre AS nombreescuela,
- materia_unica.nombre AS nombremateria,
- malla_escuela.nombre AS nombremalla
- FROM esq_ceac_planclase.tbl_syllabus
- JOIN esq_ceac_planclase.tbl_syllabus_docente_informacion ON tbl_syllabus.idregistro = tbl_syllabus_docente_informacion.id_syllabus
- LEFT JOIN esq_ceac_planclase.tbl_syllabus_mallas ON tbl_syllabus.idregistro = tbl_syllabus_mallas.id_syllabus
- LEFT JOIN esq_inscripciones.escuela ON tbl_syllabus_mallas.id_escuela = escuela.idescuela
- LEFT JOIN esq_distributivos.materia_unica ON tbl_syllabus.id_materia = materia_unica.idmateria_unica
- JOIN esq_mallas.malla_escuela ON tbl_syllabus_mallas.id_malla = malla_escuela.idmalla;
- ALTER TABLE esq_ceac_planclase.v_syllabus_materia_malla
- OWNER TO ceac_analitico;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement