S74-Subiect Examen Baze de Date
S74-Subiect Examen Baze de Date
S74-Subiect Examen Baze de Date
74
2. Translate the following E-R diagram into relational model, by indicating the schemes of the
resulting tables (table names and field names between round parentheses, as well as primary and
foreign keys - PK and FK) and the type of the relations between the resulting tables (e.g.
Student-Groups 1-n; Student-Teachers m-n):
2.) Consider the table with the following structure: Employee (Student_id PK,
Student_name, Faculty_name, Faculty_address). Is the database in the 3rd normal form?
(Motivate your answer). If the answer is no, perform the corresponding modifications in
order to bring it to the 3rd normal form. Provide the schemes of the resulting table(s),
indicating the primary and foreign keys and the relations between them, if necessary.
a.) Find the names of all Seniors (Level = SR) that have Literature as a major.
b.) Find the names of those students, who are not enrolled in at least two classes.
c.) Print the class and the number of students, for each class. The classes without
students, if they exists, should be listed as well.
d.) Find the names of the classes that meet in the same time, but in different rooms.