Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT *
- FROM c INNER JOIN pro
- ON c.id = pro.nom_pro
- INNER JOIN s
- ON s.descripcion = ...
- SELECT cursos.id AS IdCurso, cursos.nomb_curso,
- profesores.id AS IdProfesor,
- profesores.nomb_profe,
- aulas.id AS IdAula, aulas.descripcion
- FROM aulas
- INNER JOIN cursos ON aulas.id = cursos.id_aula
- INNER JOIN profesores ON profesores.id = cursos.id_profesor
- ORDER BY IdCurso;
- foreign key (llave foránea) references profesores(llave primaria),
- foreign key (llave foránea) references profesores(llave foránea),
- select cursos.id as idCurso
- , cursos.nomb_curso as nombCurso
- , profesores.id as idProfesor
- , profesores.nomb_profe as nombreProfe
- from cursos
- inner join profesores on profesores.id = cursos.id_profesor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement