venerdì 30 gennaio 2009

martedì 20 gennaio 2009

VERIFICA DI INFORMATICA DEL 19-01-09
Esercizio 8 :
Esercizio 7 :
Esercizio 6 :
Esercizio 5 :
Esercizio 4 :
Esercizio 3 :
Esercizio 2 :
Esercizio 1 :




martedì 13 gennaio 2009

select idStudente, idMateria, voto from voto where
voto<(select avg(voto) from voto) order by idStudente;
--------------------------------------------------------------------------
select count(voto) as 'numeri voto minori media' from voto
where voto<(select avg(voto) from voto);
--------------------------------------------------------------------------
select count(voto) as 'numeri voto minori media' from voto
where voto>(select avg(voto) from voto);
--------------------------------------------------------------------------
select count(voto) as 'numeri voto minori media' from voto where
voto=(select avg(voto) from voto);
--------------------------------------------------------------------------
select count(voto) from voto;
--------------------------------------------------------------------------
select idStudente, count(voto) from voto group by idStudente;
--------------------------------------------------------------------------
select idStudente, from voto where 3>(select count(voto) from voto
group by idStudente);
--------------------------------------------------------------------------
create view numeroVoti asselect idStudente, count(voto) as voti from
voto group by idStudente;
--------------------------------------------------------------------------
select idStudente from numeroVoti where voti <3;










lunedì 12 gennaio 2009











select count(*) from studente;select count(*) from programmazione;select count(*) from modulo;select count(*) from voto;
-------------------------------------------------------------
select idStudente, avg(voto) from voto where idStudente=8 group by idStudente, idMateria;
-------------------------------------------------------------
select idStudente, idMateria, avg(voto) from voto where idStudente=8 group by idStudente, idMateria;
-------------------------------------------------------------
select studente.nome, idMateria, avg(voto) from voto, studente where studente.idStudente=voto.idStudente and voto.idStudente=8 group by voto.idStudente, idMateria;
-------------------------------------------------------------
select studente.nome, materia.nome, avg(voto) from voto, studente, materia where studente.idStudente=voto.idStudente and materia.idMateria=voto.idMateria and voto.idStudente=8 group by voto.idStudente, voto.idMateria;
-------------------------------------------------------------
select studente.nome, materia.nome, avg(voto) from voto, studente, materia where studente.idStudente=voto.idStudente and materia.idMateria=voto.idMateria group by voto.idStudente, voto.idMateria order by studente.nome asc;
-------------------------------------------------------------
select studente.nome, materia.nome, avg(voto) from voto, studente, materia where studente.idStudente=voto.idStudente and materia.idMateria=voto.idMateria group by voto.idStudente, voto.idMateria order by studente.nome desc;
-------------------------------------------------------------