prueba_prueba
num_empleado horas materia
100119 12:00:00 1
tabla_maestra
num_emleado nombre del profesor
100119 Juan lopez
hago la siguinete consulta:
select profesores.tabla_maestra.nombre_completo as nombre from profesores.tabla_maestra,profesores.prueba_prueba where profesores.tabla_maestra.numero_empleado=profesores.prueba_prueba.num_empleado and profesores.prueba_prueba.materia='1'
! y funciona excelente¡ (me saca un listado con los profesores que tienen clase en esa materia 80 profesores algunos repetidos )
pero si le agrego al final la siguiente expresion:
order by nombre
select profesores.tabla_maestra.nombre_completo as nombre from profesores.tabla_maestra,profesores.prueba_prueba where profesores.tabla_maestra.numero_empleado=profesores.prueba_prueba.num_empleado and profesores.prueba_prueba.materia='1' order by nombre;
se tarda 15 se gundos en listar 15 profesores me podrian ayudar por favor
muchas gracias de antemano