Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem 4. [45 points] Suppose that we have the following requirements for a uni

ID: 3728639 • Letter: P

Question

Problem 4. [45 points] Suppose that we have the following requirements for a university database that is used to keep track of students' transcripts: The university keeps track of each student's name (SNAME); student number (SNUM); social security number (ssN); current address (scADDR) and phone (scPHONE); permanent address (sPADDR) and phone (SPPHONE); birth date (BDATE); sex (sex); class (cLass) (freshman, sophomore, ..., graduate); major department (MAJORCODE); minor department (MINORcODE) (if any); and degree program (PROG) (B.A., B..,... PH.D.). Both ssn and student number have unique values for each student. Each department is described by a name (DNAME), department code (pcoDE), office number (DoFFIcE), office phone (OPHONE), and college (DcOLLEGE). Both name and code have unique values for each department. Each course has a course name (cNAME), description (coesc), course number (cNUM), number of semester hours (cREDIT), level (LevEL), and offering department (cDEPT). The course number is unique for each course, Each section has an instructor (INAME), semester (SEMESTER), year (vEAR), 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) a. b. d. e. 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 The Then design relation schemas for the database that are each in 3NF or BCNF. Specify the key attributes of each relation. Note any unspecified requirements, and make appropriate assumptions to render the specification complete.

Explanation / Answer

Functional Dependencies:

SSN,SNUM -> SNAME, SCPHONE,SPPHONE, BDATE,SEX,CLASS,MAJORCODE, MINORCODE, PROG

SCPHONE -> SCADDR

SPPHONE -> SPADDR

DCODE ,DNAME ->DOFFICE,DPHONE,DCOLLEGE

DPHONE ->DOFFICE

CNUM -> CNAME,CDESC,CREDIT,LEVEL,CDEPT

SECNUM -> INAME,SEMESTER,YEAR,SECCOURSE

SSN,SECNUM -> GRADE

Relations in 3NF

STUDENT(SSN,SNUM ,SNAME, SCPHONE,SPPHONE, BDATE,SEX,CLASS,MAJORCODE, MINORCODE, PROG,DNAME,CNUM,SECNUM)

CURRENTADDRESS(SCPHONE, SCADDR)

PERMANENTADDRESS(SPPHONE , SPADDR)

DEPARTMENT(DCODE, DNAME,DOFFICE,DPHONE,DCOLLEGE)

COURSE(CNUM, CNAME,CDESC,CREDIT,LEVEL,CDEPT)

SECTION(SECNUM, INAME,SEMESTER,YEAR,SECCOURSE)

STUDENTGRADE(SSN,SECNUM , GRADE)

underlined are primary keys and italicised are foreign keys. Some attributes are both

Do ask if there s any query. Please upvote if it is helpful.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote