Question

QUESTION 1 How do we know the following relation with the following dependencies is BCNF? course...

QUESTION 1

  1. How do we know the following relation with the following dependencies is BCNF?

    course ( course_id , title , dept_name , credits )

    Functional Dependencies

    course_id → title , dept_name , credits

    building , room_number → capacity

    course_id , sec_id , semester , year → building , room_number , time_slot_id

    course_id, dept_name is a superkey

    course_id is a candidate key

    dept_name is a superkey

    course_id is a superkey

QUESTION 2

  1. In the following decomposition of R, what can we say about the decomposition if at least one of the following dependencies is in F + :

    • R 1 ∩ R 2 → R 1

    • R 1 ∩ R 2 → R 2

    it is 3NF

    it is lossy

    it is lossless

    it is BCNF

QUESTION 3

  1. Which of the following are hallmarks of good database design?

    avoids necessity of nulls

    decomposition is lossless

    all of the above

    avoids repetition of data

Homework Answers

Answer #1

1.BCNF Decomposition:

  • course_id→ title, dept_name, credits holds.
  • We replace class by:
    • course(course_id, title, dept_name, credits)
    • class-1 (course_id, sec_id, semester, year, building, room_number, capacity, time_slot_id)

building, room_number→capacity holds on class-1

− but {building, room_number} is not a superkey for class-1.

− We replace class-1 by:

  • classroom (building, room_number, capacity)
  • section (course_id, sec_id, semester, year, building, room_number, time_slot_id)

classroom and section are in BCNF.

2.Decomposition {R1, R2} is a lossless-join decomposition if R1 ∩ R2 → R1 or R1 ∩ R2 → R2.

Let R1 = (A, B, C), R2 = (A, D, E), and R1 ∩ R2 = A. Since A is a candidate key.Therefore R1 ∩ R2 → R1.

3.All of the above

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
Suppose we have the following relation R with composite primary key {A,B} together with the set...
Suppose we have the following relation R with composite primary key {A,B} together with the set FD of functional dependencies: R(A,B,C,D,E,F,G). FD = { C -> G, E -> B, A -> D, AB -> C, AB -> D, AB -> E. AB -> F, AB -> G } Draw the initial dependency diagram using the above information. The relation from part a) is in first normal form. Using the techniques described in the lecture, convert it to 2NF by...
14.19. Suppose that we have the following requirements for a university database that is used to...
14.19. Suppose that we have the following requirements for a university database that is used to keep track of students’ transcripts: a. The university keeps track of each student’s name (Sname), student number (Snum), Social Security number (Ssn), current address (Sc_addr) and phone (Sc_phone), permanent address (Sp_addr) and phone (Sp_phone), birth date (Bdate), sex (Sex), class (Class) (‘freshman’, ‘sophomore’, … , ‘graduate’), major department (Major_code), minor department (Minor_code) (if any), and degree program (Prog) (‘b.a.’, ‘b.s.’, … , ‘ph.d.’). Both...
Database 1. Let A4, A5, and A6 be attributes in a relation R. If both of...
Database 1. Let A4, A5, and A6 be attributes in a relation R. If both of these functional dependencies hold: A4 → A5 and A5 → A6, then A4 → A6holds, because of the _________ rule. 2. The fact that the value of a foreign key attribute must exist in another set of one or more key attributes in another table, is called a(n) __________. 3. Any set of attributes that allows us to identify unique rows (tuples) in a...
Section B. For each question in this section, you are required to list all possible candidate...
Section B. For each question in this section, you are required to list all possible candidate keys for the given schema based on the functional dependencies provided. You may wish to compute the closure of your key(s) to confirms they are valid. Question 1 R [A, B, C, D, E, F, G, H, I, J] {A} -> {B} {C} -> {B} {B} -> {D, E, F, G, H} {D, F} -> {I, J, A} Question 2 R [A, B, C,...
1. Suppose we have the following relation defined on Z. We say that a ∼ b...
1. Suppose we have the following relation defined on Z. We say that a ∼ b iff 2 divides a + b. (a) Prove that the relation ∼ defines an equivalence relation on Z. (b) Describe the equivalence classes under ∼ . 2. Suppose we have the following relation defined on Z. We say that a ' b iff 3 divides a + b. It is simple to show that that the relation ' is symmetric, so we will leave...
Create a relational model and ER diagram based on the following info. Emerald Realty Group, Inc....
Create a relational model and ER diagram based on the following info. Emerald Realty Group, Inc. is a local real estate company that is specialized in leasing office space to businesses. The company does not own all the properties it leases. The company has its own suppliers and customers. We refer to the person or the company that owns the office space as a supplier. A customer is the person or the company that rents the office space. Emerald Realty...
Let's say we have the following relation defined on the set {0, 1, 2, 3}: {...
Let's say we have the following relation defined on the set {0, 1, 2, 3}: { (0, 0), (0, 2), (2, 0), (2, 2), (2, 3), (3, 2), (3, 3) } - Please answer the following 3 questions about this relation. (The relation will be repeated for each question.) Is this relation a function? Why or why not? - What are the three properties that must be present in an equivalence relation? Please give the names of the three properties...
True False Select the most correct answer. Question 1 (1 point) Most databases are just in...
True False Select the most correct answer. Question 1 (1 point) Most databases are just in 1NF. Question 1 options: True False Question 2 (1 point) A subquery is always preferred over a join. Question 2 options: True False Question 3 (1 point) A database may consist only of multiple files. Question 3 options: True False Question 4 (1 point) A database may exist without a database management system. Question 4 options: True False Question 5 (1 point) The insert...
Instructions: Step 1: Create UNF Relation from a User View. The goal here is to create...
Instructions: Step 1: Create UNF Relation from a User View. The goal here is to create a single relation for the data found in the user view. The method used is: •   Examine the user view •   Identify all attributes •   Describe the user view using DBDL Here is an example of a user view. This reports lists the customers of the Premiere Corporation. Premiere Corporation Customer List CustNo   Name   Street   City   State   ZipCode   SalesRepNo 124    Sally Adams   482...
Question: 1 Classical Model: The Long Run 1.1 Open Economy Solve for the following Y, W...
Question: 1 Classical Model: The Long Run 1.1 Open Economy Solve for the following Y, W P , L, C, I, Nx, r,... 1 Classical Model: The Long Run 1.1 Open Economy Solve for the following Y, W P , L, C, I, Nx, r, i, Md , when 1. Labor supply increases ansewer key 1. L s ?,? (W/P) ? 2. L ?? Y ?, ? S ?, ? r ? 3. r ?,? C, I ? 4. r...