Advertisement
jotazetaec

Untitled

Jan 8th, 2024
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. select dar.ndepartamento , dar.docente , dar.cedula , mu.nombre as materia ,
  2. p.nombre as paralelo,da.iddistributivo , count(distinct id.*) as total,count(distinct tie.id_evaluador)
  3. from esq_distributivos.distribucion_administrativa_resumen dar
  4. join esq_distributivos.distribucion_academica da on da.iddepartamento_periodo = dar.iddepartamento_periodo and da.idpersonal = dar.id_personal
  5. join esq_distributivos.materia_unica mu on mu.idmateria_unica = da.idmateria_unica
  6. join esq_distributivos.paralelo p on da.idparalelo = p.idparalelo
  7. join esq_inscripciones.inscripcion_detalle id on id.idperiodo = dar.idperiodo_academico and id.iddistributivo = da.iddistributivo
  8. left join esq_evaluacion.tbl_int_evaluaciones tie on tie.id_distributivo = da.iddistributivo and tie.id_rol = 1
  9. where dar.idperiodo_academico in (167,168) and dar.id_personal > 0 and dar.iddepartamento in (15,63) --and da.iddistributivo = 84773
  10. group by dar.ndepartamento , dar.docente , dar.cedula ,da.iddistributivo, mu.nombre,p.nombre
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement