-- Crear un listado de contactos y contenidos con UNION ALL
SELECT
nombre AS entidad,
ciudad AS detalle_ubicacion,
'Estudiante' AS tipo_registro
FROM estudiantes
UNION ALL
SELECT
titulo AS entidad,
nivel AS detalle_ubicacion,
'Curso Académico' AS tipo_registro
FROM cursos
ORDER BY tipo_registro ASC, entidad ASC;