Archivio blog
sabato 30 maggio 2009
Domande e dubbi per il sito dinamico
ZMOTOCLUB
lunedì 18 maggio 2009
giovedì 12 febbraio 2009
martedì 10 febbraio 2009
lunedì 19 gennaio 2009
compito informatica
1)
select studente.nome,materia.nome,voto.voto from studente, materia, voto where studente.idStudente=voto.idStudente and materia.idMateria=voto.idMateria order by studente.nome asc;

select studente.nome,materia.nome,modulo.nome, voto.voto from studente,materia ,modulo, voto where studente.idStudente=voto.idStudente and materia.idMateria =voto.idMateria and materia.idMateria=modulo.idMateria and studente.nome='Paperino';

3)
select materia.nome, studente.nome, voto.voto from studente, materia, voto where studente.idStudente=voto.idStudente and materia.idMateria=voto.idMateria and studente.nome='Paperino' and voto.idStudente<’6’ group by voto.idStudente;
4)
select idMateria, voto from voto where idMateria=1 group by idMateria;
5)
select idStudente, idMateria, count (voto) from voto where idMateria=’1’ group by idStudente;

6)
select studente .nome, count(voto) as 'numero voti' from voto, studente where studente.idStudente=voto.idStudente and voto.idStudente<6>

7)
select studente.nome, avg(voto) as 'media voti' from voto, studente where studente.idStudente=voto.idStudente group by voto.idStudente;
8)
select docente.nome, materia.nome, modulo.nome, programmazione.mmaaInizio, programmazione.mmaaFine from docente, materia, modulo, programmazione where materia.idMateria=modulo.idMateria and docente.idDocente=programmazione.idMateria and modulo.idModulo=programmazione.idModulo;

lunedì 3 novembre 2008
esercizio per il 4 nov
Dei fornitori(codice, nome) forniscono negozi di vari tipi di materiale(codice, prezzo). I negozi vendono questa merce a clienti(nome). I clienti quando acquistano forniscono la quantità del materiale a cui corrisponde un prezzo totale da pagare.Si vogliono relazionere le entità in modo da poter ricavare le informazioni sulle varie azioni possibile.
diagramma E/R:






