Relational Database
Question 1
Consider the relation CLASS (Course#, Univ_Section#, InstructorName, Semester, BuildingCode, Room#, TimePeriod, Weekdays, CreditHours). This represents classes taught in a university with unique Univ_Section#. Please identify what you think should be various candidate keys and write in your own words under what constraints (or conditions) each candidate key would be valid.
Question 2
Consider the following relations for a database that keeps track of student enrollment in courses and the books adopted for each course:
STUDENT (SSN, Name, Major, Bdate)
COURSE (Course#, Quarter, Grade)
ENROLL (SSN, Course#, Quarter, Grade)
BOOK_ADOPTION (Course#, Quarter, Book_ISBN)
TEXT (Book_ISBN, Book_Title, Publisher, Author)
Specify the foreign keys for this schema, stating any assumptions you make.
Relational Database
Name
Course
Instructor
Date
Based on the assumptions that the semester is a key candidate depicturing the period of study then it follows that this value varies and helps in building the relational database
{Semester, BuildingCode, Room#, TimePeriod, Weekdays} this holds so long as the students cannot be assigned to different courses in the same lecture Room at the same time in the semester
{Univ-Section#} holds so long as it is distinctive for all the semesters.
{InstructorName, Semester} is assumed that there will be no clash in the classes being taught for each semester, and with each instructor teaching only one course.
{Univ_Section#, if the attribute is not unique, then there is a need to understand the section numbering being followed by the university. On the other hand if the course sections have unique numbers for a particular semester it follows that the candidate key is{Univ_Section# student}
Typically, the members of an entity, all participate in a relationship, and the relational model helps to illustrate the references in the relationship constraints. The assumption that an entity participates in only one relationship holds also when there is a constraint and total participation. However, there are also times when there is partial participation since not all entities are in the relationship participation. In a schema of relationship the attributes, key as well as relationship. Using the constraint allows one to define and enforce the data base, since the constraint defines rules on values in the data base while also helping to e...
👀 Other Visitors are Viewing These APA Essay Samples:
-
Mean and Median Measures of Salaries for Employee
1 page/≈275 words | 2 Sources | APA | Mathematics & Economics | Coursework |
-
Employees of a Company
1 page/≈275 words | 1 Source | APA | Mathematics & Economics | Coursework |
-
Tommie Woodard
2 pages/≈550 words | No Sources | APA | Mathematics & Economics | Coursework |