Sign In
Not register? Register Now!
Pages:
2 pages/≈550 words
Sources:
1 Source
Style:
APA
Subject:
Mathematics & Economics
Type:
Coursework
Language:
English (U.S.)
Document:
MS Word
Date:
Total cost:
$ 11.66
Topic:

Relational Database

Coursework Instructions:

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.

Coursework Sample Content Preview:

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...
Updated on
Get the Whole Paper!
Not exactly what you need?
Do you need a custom essay? Order right now:

You Might Also Like Other Topics Related to relationship:

HIRE A WRITER FROM $11.95 / PAGE
ORDER WITH 15% DISCOUNT!