Select studente.nome, voto.materia, voto.voto, voto.data
from studente, voto
where studente.id=voto.studente_id
order by studente.nome asc
Select abbonato.nome, corso.nome, prenota.dataprenota
from abbonato, corso, prenota
where prenota.abbonato_id=abbonato.id
and prenota.corso_id=corso.id
order by corso.nome asc, abbonato.nome asc
Select studente.nome, avg(voto.voto) as ‘voto medio’
from studente, voto
where studente.id=voto.studente_id
group by studente.nome
Select studente.nome, voto.materia, avg(voto.voto) as ‘voto medio’
from studente, voto
where studente.id=voto.studente_id
group by studente.nome, voto.materia
Select abbonato.nome, corso.nome, prenota.dataprenota
from abbonato, corso, prenota
where prenota.abbonato_id=abbonato.id
and prenota.corso_id=corso.id and corso.nome=“acqua gim”
order by prenota.dataprenota asc
Continua con la programmazione:Ossia con l’inpatto della join nel programmare siti web dinamici
Top Related