1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sonja [21]
3 years ago
14

Assume each student is assigned an advisor from a department. Each classroom is assigned a classroom (class# determines Classroo

m). (Student#, Class#) is the primary key to this relation. Is this relation in 2NF? Justify your answer and decompose if necessary. Assuming each advisor is assigned an office and each advisor belongs to a particular department. Then argue whether further normalization to 3NF is necessary, and if so, perform it.
Computers and Technology
1 answer:
Luden [163]3 years ago
3 0

Answer:

Check the explanation

Explanation:

As we know that any relation will be in 2NF if it satisfies following two conditions

1> It should be in 1NF.

2> It should not contain any partial dependency i.e. all the non-prime attributes should fully functionally dependent on the relation key(s).

In the given table,

The primary key is (Student#,class#).

And one of functional dependency is

Class# determines Classroom (Class# ------> Classroom)

This functional dependency is a partial functional dependency because in this dependency a proper subset(Class#) of a relation key(Student#,Class#)  functionally determines a non-prime attribute(Classroom).

Since this table contains a partial dependency therefore as per the definition of 2NF this table is not in 2NF.

Now we can decompose it into 2NF by splitting the table into the following two tables(R1 and R2).

R1(Student#, Class#, Advisor, Advisor-office, Department) and R2(Class#, Classroom)

R1 table is shown below.

Student# Class# Advisor Advisor-office Department

1011                    101-07 Jones           212    CSCI

1011                    201-02 Jones           212    CSCI

1011                    310-11 Jones           212     CSCI

2010           101-07 Anderson   308    MATH

2010          201-02 Anderson   308    MATH

2010          120-12 Anderson   308    MATH

R2 table is shown below

Class# Classroom

101-07 WIL230

201-02 OVR212

310-11 WIL224

120-12 WIL306

Now these tables(R1 and R2) are in 2NF.

Argument For 3NF

As we know that any relation will be in 3NF if it satisfies following two conditions

1> It should be in 2NF.

Student# Class# Advisor

1011                 101-07 Jones

1011                 201-02 Jones

1011                  310-11 Jones

2010         101-07 Anderson

2010         201-02 Anderson

2010         120-12 Anderson

R12 is shown below

Advisor Advisor-office

Jones          212

Anderson  308

R13 is shown below

Advisor Advisor-office

Jones         CSCI

Anderson MATH

So these four tables (R11, R12, R13, R2) correctly represent the third normal form of the given table.

2> It should not contain any transitive dependency i.e. all the non-prime attributes should be non-transitively dependent on the relation key(s).

Now from the question, we come to know that

1> Each advisor is assigned an office, which means that following functional dependency exists in table R1

Advisor determines Advisor-office (Advisor------> Advisor-office).

2>Each advisor belongs to a particular department, which means that following functional dependency also exists in table R1

Advisor determines Department (Advisor------> Department).

So we have following two dependencies in table R1

1>  Advisor determines Advisor-office (Advisor------> Advisor-office).

2> Advisor determines Department (Advisor------> Department).

Since we know that (Student#,Class#) is a primary key, so it should determine Advisor functionally i.e.

(Student#,Class#)----> Advisor

and from above two conditions we have

Advisor--->Advisor-office and Advisor----->Department

We can clearly see that Advisor---->Advisor-office and  Advisor----->Department are two transitive dependency because Advisor itself is functionally dependent on (Student#, Class#) .

So here we can see that two non prime attributes (Advisor-office and Department) are transitively dependent on the Primary key(Student#,Class#).

Therefore as per definition R1 is not in 3NF. But R2 is in 3NF as per definition.

So we can decompose R1 into 3NF by splitting the table into the following three tables(R11, R12, and R13).

R11(Student#, Class#, Advisor), R12 (Advisor, Advisor-office), and R13(Advisor, Department)  

R11 is shown below

Student# Class# Advisor

1011                101-07 Jones

1011                201-02 Jones

1011                310-11 Jones

2010       101-07 Anderson

2010       201-02 Anderson

2010       120-12 Anderson

R12 is shown below

Advisor Advisor-office

Jones      212

Anderson 308

R13 is shown below

Advisor Advisor-office

Jones          CSCI

Anderson MATH

So these four tables (R11, R12, R13, R2) correctly represent the third normal form of the given table.

You might be interested in
HELP! WILL GIVE BRAINLIEST
maw [93]

Answer:

Creative, helpful, communicative, colorful, detailed

Explanation:

6 0
3 years ago
Read 2 more answers
Hans creates a desktop website for his company, then adds code to the site to make it work on smaller screens.
kotykmax [81]

Answer:

One possible problem is layout of the website which fit a desktop machine doesn't fit well on a mobile screen. The problem can be worsened by a variety size of the mobile screens that there is no single and fixed layout can be applied to all types of the screens. The layout presentation may be rendered inconsistently across different mobile screen. This is better to have a earlier planning to work out a responsive design that works for different screen before starting to develop the desktop website.

5 0
4 years ago
FIRST PERSON TO FINISH GETS BRAINLIST
ivanzaharov [21]
1. D

2. D

3. ?

4. False

5. True

3 0
3 years ago
What are the elements in a publication called​
Illusion [34]

Answer:

There are several important elements in a magazine layout, such as headline, image, image caption, running head, byline, subhead, body copy, etc. Here, we look into the ten most crucial elements of a magazine layout.

6 0
3 years ago
Read 2 more answers
A video project needs to be encrypted as it is going from a source to a destination. What can be added to the video
egoroff_w [7]

Answer:

A video encoder

Explanation:

an encoder is used to make a video encrypted so nobody can take your copy it. For instance You Tube uses an encoder

8 0
3 years ago
Other questions:
  • Remote authentication has always been a concern because the person is coming from a public network, and many companies require t
    5·2 answers
  • What is the correct order of operations for protecting a critical section using a binary semaphore?
    15·1 answer
  • Someone who buys a song online and copies it for friends is violating
    15·2 answers
  • (Java)
    12·1 answer
  • The NIST SP 800-100 Information Security Handbook provides technical guidance for the establishment and implementation of an inf
    12·1 answer
  • If you have a database of books in the library and you would like to find all books published after January 1, 2008, what criter
    7·1 answer
  • Which of the following are considerations in e-commerce and e-government Internet sites? Check all of the boxes that apply.
    10·1 answer
  • Saji was exploring the Themes menu for a presentation she just started working on. She found one she really liked, but wanted to
    8·1 answer
  • Does anyone know how to move the search bar
    11·1 answer
  • What Pre-Built PC should I get? I don't have a lot of money so I'm looking for cheap options.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!