Question

3-students take courses. Someone design this table: Student_Course (student name, ID , SSN , course number,...

3-students take courses. Someone design this table: Student_Course (student name, ID , SSN , course number, grade, home address, course credit ) Description: ID, SSN; each one has a unique value for a given student. Given ID and course number we can get grade. Given SSN and course number we can get grade. Given ID we can get everything except grade and course credit. Given SSN we can get everything except grade and course credit. Given course number we can get course credit. Student name can be first and last name We need to be able to get detail of home address such as city, state and zip Each step may require multiple actions. a. Identify primary key. b. Is this table in 1st NF? If not convert it into 1st NF. c. Is the table in a in 2nd NF? If not convert it to be in 2nd NF. d. Is the table in b in 3rd NF? If not convert it to be in 3rd NF. e. Is the table in c in BCNF? If not convert it to be in BCNF.

Homework Answers

Answer #1

A) The FD's possible are :

ID, CourseNumber -> Garde

SSN ,CourseNumber -> Grade

ID -> studentName, SSN, CourseNumber, homeaddress

SSN -> studentName, SSN, courseNumber, homeaddress

CourseNumber -> credit

The primary key for the relation is (ID, CourseNumber) (SSN, CourseNumber)

B) The given relation is in 1NF since it doesn't contain any Multivalued attribute.

C) Given relation not in 2NF since it contain partial FD.

So decompose it to form 2NF relation

R1:(ID, SSN, studentName, courseNumber, homeaddress)

R2:(courseNumber, credit)

To make decomposition lossless, we need to include primary key of R1 and attribute grade in one relation. Since R1 includes 2 primary key, include either one of them. Let's take ID to add in R3.

So R3:(ID, Grade)

Here in R1, student name can be further divided to First name and Last name.

While home address is divided as (city, state, zip)

So R1 =(ID, SSN, FirstName, LastName, CourseNumber, city, state, zip)

D) The decomposed relation R1, R2 and R3 is in 3NF.

E) The decomposed relation R1, R2 and R3 are in BCNF as well.

If you have any questions comment down. Please don't simply downvote and leave. If you are satisfied with answer, please? upvote thanks..

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
MySQL I have the following tables: Students(sid,first_name,last_name,birthday,major,zipcode) Students_Courses(sid,cid,year,semester,grade) Courses(cid,name,credits) use Students_Courses table to find the student...
MySQL I have the following tables: Students(sid,first_name,last_name,birthday,major,zipcode) Students_Courses(sid,cid,year,semester,grade) Courses(cid,name,credits) use Students_Courses table to find the student sid and course cid for whom took the same course more than one time. can you help me with my query select first_name,last_name,name from Students s, Courses c where s.sid,c.cid,ct in ( select sid,cid,count(*) from Students_Courses group by sid,cid having count(*) > 1);
Use Python 3.8: Problem Description Many recipes tend to be rather small, producing the fewest number...
Use Python 3.8: Problem Description Many recipes tend to be rather small, producing the fewest number of servings that are really possible with the included ingredients. Sometimes one will want to be able to scale those recipes upwards for serving larger groups. This program's task is to determine how much of each ingredient in a recipe will be required for a target party size. The first inputs to the program will be the recipe itself. Here is an example recipe...
Actually a HISTORY question: what tactics does Einhard use to portray Charlemagne in "Life of Charlemagne"...
Actually a HISTORY question: what tactics does Einhard use to portray Charlemagne in "Life of Charlemagne" and what tactics does Procipius use to describe Justinian in a positive light in the "Nika Riots"? Ive posted both excerpts. "Life of Charlemagne" Charles the Great, (Charlemagne in French) reigned 768-814 as king of the Franks and the most important ruler of the Carolingian Dynasty, conquering lands in what is now Germany, France, Spain, and Italy. On Christmas Day 800 C.E., Pope Leo...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT