2. /*Alumnos que tengan 15 años*/
select alumno.nombre, alumno.apellido, alumno.edad
from alumno
where alumno.edad=15;
3. /*Edad del Alumno Perez*/
select alumno.nombre, alumno.apellido, alumno.edad
from alumno
where alumno.apellido='PEREZ';
4. /*Primera nota de todos los Alumno*/
select alumno.nombre, nota.nota1
from alumno, nota
where nota.alumno_idalumno =alumno.idalumno ;
5. /*Primera nota de todos los Alumno por
materia*/
select alumno.nombre, nota.nota1, materia.nombre
from alumno, nota, materia
where nota.alumno_idalumno = alumno.idalumno and
nota.alumno_materia_idmateria = materia.idmateria;
6. /*Primera nota de todos los Alumno por
materia Ordenados por nombre*/
select alumno.nombre, nota.nota1, materia.nombre
from alumno, nota, materia
where nota.alumno_idalumno = alumno.idalumno and
nota.alumno_materia_idmateria = materia.idmateria
order by alumno.nombre;
7. /*Alumnos por materias*/
select alumno.nombre, alumno.apellido, materia.nombre
from alumno, materia
where materia.idmateria = alumno.materia_idmateria and materia.nombre =
'MFP‘
order by alumno.apellido;
8. /*Notas por materias*/
select alumno.nombre, alumno.apellido, materia.nombre, nota.nota1, nota2
from alumno, materia, nota
where materia.idmateria = alumno.materia_idmateria and materia.nombre = 'MFP‘
group by alumno.nombre;