Advertisement
MiguelazoDS

Untitled

Jan 27th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.20 KB | None | 0 0
  1. SELECT CONCAT (P.apellidos,' ',P.nombre, ' imparte ', COUNT(C.id_curso),' cursos') AS Info_profesores
  2. FROM profesores AS P,cursos AS C
  3. WHERE P.id_profe = C.id_profe
  4. GROUP BY P.id_profe
  5. ORDER BY P.apellidos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement