Commit da862bda authored by David Villalobos Cambronero's avatar David Villalobos Cambronero
Browse files

Update PlanificacionGestionAcademica-Sobrescribir.sql

parent c6a7c58f
Pipeline #6544 passed with stage
in 34 seconds
......@@ -700,7 +700,7 @@ SELECT `a`.`Identificacion`
, `c`.`CorreoElectronico1` AS `CorreoE`
, `d`.`GradoAcademico` AS `UltimoGrado`
, `a`.`FechaIngreso`
, (SELECT `e`.`Categoria` FROM `Drupal`.`VicerrectoriaDocencia_DocentesCategorias` `e` WHERE `e`.`Identificacion` = `a`.`Identificacion` ORDER BY `e`.`PeriodoAnio` DESC LIMIT 1) AS `Categoria`
, (SELECT `e`.`Categoria` FROM `Drupal`.`VicerrectoriaDocencia_DocentesCategorias` `e` WHERE `e`.`Identificacion` = `a`.`Identificacion` ORDER BY CONCAT(SUBSTRING_INDEX(`e`.`PeriodoAnio`, '-', -1), SUBSTRING_INDEX(`e`.`PeriodoAnio`, '-', 1)) DESC LIMIT 1) AS `Categoria`
, `d`.`Especialidad`
, IF(`b`.`Anualidades` IS NULL, `a`.`Anualidades`, `b`.`Anualidades`) AS `Anualidades`
, `a`.`Estado`, `a`.`OtroEstado`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment