Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3. [15 points] Consider the attribute set (i.e., table with those attributes) R-ABCDEGH and the FD set F-(AB C, A-, BE, AD E, A

image text in transcribed

image text in transcribed

Problem 3. [15 points] Consider the attribute set (i.e., table with those attributes) R-ABCDEGH and the FD set F-(AB C, A-, BE, AD E, A D, BC A, E G}. (a) Find the minimal cover for F [10 points] (b) For the following decomposed table with attribute set X=ABCEG, find the set of dependencies that hold over the set X, i.e., what is the projection of F onto X[5 points. Problem 4. [45 points] Suppose that we have the following requirements for a university database that is used to keep track of students' transcripts: (i) The university keeps track of each student's name (SNAME); student identifier (siD); social security number (SSN); current address (cADDR) and phone (cPHONE); permanent address (PADDR) and phone (PPHONE); birth date (BDATE); gender (gender); class (cLASS) (freshman, sophomore, graduate); major department (MAJORCODE); minor department (MINORCODE) (if any); and degree program (PROG) (B.A., B.s.,... PH.D.). Both ssN and student identifier have unique values for each student (ii) Each department is described by a name (DNAME), department code (pcoDE), office number (DOFFICE), office phone (DPHONE), and college (DcoLLEGE). Both name and code have unique values for each department. (iii)Each course has a course name (cNAME), description (cDESc), course number (cNUM), number of semester hours (cREDIT), level (LEVEL), and offering department (cDEPT). The course number is unique for each course. (iv)Each section has an instructor (INAME), semester (SEMESTER), year (YEAR), course (SECCOURSE), and section number (SECNUM). The section number distinguishes different sections of the same course that are taught during the same semester/year; its values are 1, 2, 3,..., up to the total number of sections taught during each semester. A grade record refers to a student (ssN), a particular section, and a grade (GRADE) Design a relational database schema for this database application. First show all the functional dependencies that should hold among the attributes. For example, the phone numbers can determine corresponding addresses and offices. An office can also determine its phone number. Then design relation schemas for the database that are each in 3NF or BCNF. Specify the key attributes of each relation. Note any unspecified requirement and make appropriate assumptions o render the specification complete. Problem 3. [15 points] Consider the attribute set (i.e., table with those attributes) R-ABCDEGH and the FD set F-(AB C, A-, BE, AD E, A D, BC A, E G}. (a) Find the minimal cover for F [10 points] (b) For the following decomposed table with attribute set X=ABCEG, find the set of dependencies that hold over the set X, i.e., what is the projection of F onto X[5 points. Problem 4. [45 points] Suppose that we have the following requirements for a university database that is used to keep track of students' transcripts: (i) The university keeps track of each student's name (SNAME); student identifier (siD); social security number (SSN); current address (cADDR) and phone (cPHONE); permanent address (PADDR) and phone (PPHONE); birth date (BDATE); gender (gender); class (cLASS) (freshman, sophomore, graduate); major department (MAJORCODE); minor department (MINORCODE) (if any); and degree program (PROG) (B.A., B.s.,... PH.D.). Both ssN and student identifier have unique values for each student (ii) Each department is described by a name (DNAME), department code (pcoDE), office number (DOFFICE), office phone (DPHONE), and college (DcoLLEGE). Both name and code have unique values for each department. (iii)Each course has a course name (cNAME), description (cDESc), course number (cNUM), number of semester hours (cREDIT), level (LEVEL), and offering department (cDEPT). The course number is unique for each course. (iv)Each section has an instructor (INAME), semester (SEMESTER), year (YEAR), course (SECCOURSE), and section number (SECNUM). The section number distinguishes different sections of the same course that are taught during the same semester/year; its values are 1, 2, 3,..., up to the total number of sections taught during each semester. A grade record refers to a student (ssN), a particular section, and a grade (GRADE) Design a relational database schema for this database application. First show all the functional dependencies that should hold among the attributes. For example, the phone numbers can determine corresponding addresses and offices. An office can also determine its phone number. Then design relation schemas for the database that are each in 3NF or BCNF. Specify the key attributes of each relation. Note any unspecified requirement and make appropriate assumptions o render the specification complete

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

Different formulas for mathematical core areas.

Answered: 1 week ago