Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Basi di dati ~ informatica triennale > altro esercizio
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
middu
.arcimaestro.

User info:
Registered: Oct 2002
Posts: 466 (0.05 al dì)
Location:
Corso:
Anno:
Time Online: 4 Days, 16:14:21 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
altro esercizio

Considerare una base di dati relativa a studenti ed esami da essi superati:
Studenti(Matricola, Cognome, Nome)
Esami(Studente,Materia,Voto,Data)
con vincolo di integrita referenziale fra l'attributo Studente di Esami e la relazione Studenti.
1. Formulare in algebra relazionale l'interrogazione che trova matricola, cognome e nome degli studenti
che hanno preso almeno un 30.
2. Formulare in SQL l'interrogazione che mostra, per ogni studente, matricola, cognome e media dei
voti riportati negli esami superati.
3. Formulare in SQL l'interrogazione che trova gli studenti (mostrare il numero di matricola) che
hanno superato almeno due esami dopo il 1/1/2000.
4. Scrivere un frammento di programma in SQL immerso in un linguaggio (o pseudolinguaggio) di
programmazione che stampi un elenco degli studenti (con matricola, cognome e nome) con, per
ciascuno, l'elenco degli esami superati. Gli studenti debbono essere ordinati per matricola e gli
esami per data. Assumere che ciascuno studente abbia superato almeno un esame, ma commentare
brevemente come si potrebbe trattare il caso in cui vi siano studenti che non hanno superato esami.

02-07-2008 18:03
Click Here to See the Profile for middu Click here to Send middu a Private Message Find more posts by middu Add middu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
middu
.arcimaestro.

User info:
Registered: Oct 2002
Posts: 466 (0.05 al dì)
Location:
Corso:
Anno:
Time Online: 4 Days, 16:14:21 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

1)∏matricola,cognome,nome(STUDENTE * matricola = studente (σvoto = 30 esami))
oppure
∏matricola,cognome,nome ((∏matricola STUDENTE) * matricola = studente (∏studente(σvoto = 30 esami)));

02-07-2008 18:07
Click Here to See the Profile for middu Click here to Send middu a Private Message Find more posts by middu Add middu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 07:27.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.046 seconds (62.46% PHP - 37.54% MySQL) con 22 query.