Extras din proiect
– disciplina „Baze de Date” –
Pentru gestionarea mai buna a studentilor dintr-o universitate si examenele acestora s-a creat o baza de date cu urmatorul dictionar al datelor:
Nume atribut Semnificatie atribut
1. CA1302CodStud Codul student
2. CA1302NumeStud Nume Student
3. CA1302PrenumeStud Prenume Student
4. CA1302AdresaStud Adresa Student
5. CA1302LocalitateStud Localitate Student
6. CA1302TelStud Telefon Student
7. CA1302CodEx Cod Examen
8. CA1302DataEx Data Examen
9. CA1302DiscEx Disciplina la care se da examenul
10. CA1302CodCated Cod Catedra
11. CA1302NumeCated Nume Catedra
12. CA1302CodDisc Cod Disciplina
13. CA1302NumeDisc Nume Disciplina
14. CA1302NrOre Numar Ore
15. CA1302CodProf Cod Profesor
16. CA1302NumeProf Nume Profesor
17. CA1302VechimeProf Vechime Profesor
18. CA1302SalProf Salariu Profesor
Reguli de gestiune:
- Un student poate participa la mai multe examene
- O catedra poate avea mai multe discipline
Se stabilesc dependentele functionale
• CA1302CodStud
- CA1302NumeStud
- CA1302PrenumeStud
- CA1302AdresaStud
- CA1302LocalitateStud
- CA1302TelStud
• CA1302CodProf
- CA1302NumeProf
- CA1302VechimeProf
- CA1302SalProf
• CA1302CodEx
- CA1302DataEx
- CA1302DiscEx
- CA1302CodStud
- CA1302CodProf
• CA1302CodDisc
- CA1302NumeDisc
- CA1302NrOre
- CA1302CodProf
- CA1302CodCated
• CA1302CodCated
- CA1302NumeCated
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
1. CA1302CodStud 1 1 1 1 1
2. CA1302NumeStud
3. CA1302PrenumeStud
4. CA1302AdresaStud
5. CA1302LocalitateStud
6. CA1302TelStud
7. CA1302CodEx 1 1t 1t 1t 1t 1t 1 1
8. CA1302DataEx
9. CA1302DiscEx
10. CA1302CodCated 1
11. CA1302NumeCated
12. CA1302CodDisc 1t 1 1 1t 1t 1t
13. CA1302NumeDisc
14. CA1302NrOre
15. CA1302CodProf 1t 1t 1 1 1
16. CA1302NumeProf
17. CA1302VechimeProf
18. CA1302SalProf
Chei Primare: CA1302CodStud, CA1302CodEx, CA1302CodDisc, CA1302CodProf,CA1302CodProf
Definirea modelului relational
• CA1302Studenti (CA1302CodStud,CA1302NumeStud, CA1302PrenumeStud, CA1302AdresaStud, CA1302LocalitateStud ,CA1302TelStud)
• CA1302Profesori(CA1302CodProf, CA1302NumeProf, CA1302VechimeProf, CA1302SalProf)
• CA1302Examene(CA1302CodEx, CA1302DataEx, CA1302DiscEx, CA1302CodStud, CA1302CodProf)
• CA1302Discipline(CA1302CodDisc, CA1302NumeDisc, CA1302NrOre, CA1302CodProf, CA1302CodCated)
• CA1302Catedra(CA1302CodCated, CA1302NumeCated)
•
Reguli de integritate
- Numele studentilor trebuie sa fie intre 3 si 30 caractere
- Prenumele studentilor trebuie sa fie intre 3 si 30 de caractere
- Codul examenelor trebuie sa fie intre 3 si 10 caractere
- Codul profesorilor trebuie sa fie intre 2 si 8 caractere
-
Interogari
1. Interogarea 1 – Sa se afiseze lista studentilor al caror nume incepe cu litera “M” si locuiesc in provincie.
Codul SQL al acestei interogări este:
SELECT CA1302Studenti.CA1302NumeStud, CA1302Studenti.CA1302PrenumeStud, CA1302Studenti.CA1302LocalitateStud
Preview document
Conținut arhivă zip
- Proiect Baze de Date - Gestionarea Studentilor si a Examenelor.docx