Question

1. a. Explain why the functional dependency with the primary key as the determinant and all...

1. a. Explain why the functional dependency with the primary key as the determinant and all non-key attributes as dependents is present in any relation.

b. List reasons why we may have a relational model with data redundancy.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1a.

Functional Dependency basically determines the relation of one attribute to another attribute. It is typically between the Primary Key (PK) and the other non-key attributes within a table. For any relation R, attribute B is functionally dependent on attribute A (which is mostly the Primary Key)

Left Side (A) is called the determinant and the right side (B) is the dependent.

For Instance

Consider a relation R defined over a set of attributes (A1, A2,…..An)

and let X and Y be Í (A1, A2,……...An), then

XY

Y is functionally dependent on X if and only, whenever two tuples in R agree on their X value, they also agree on their Y value.

i.e if each X value in (A1, A2,…..An) has associated with it one Y value in (A1, A2,……..An)

If t1.X = t2.X then t1.Y = t2.Y

A determinant in a table is an attribute that can be used to determine the values assigned to other attributes in the same row. By this statement, any primary key is a determinant, but there may be determinants that are not the primary key.

1.b.

Data redundancy is the issue in organising the data which causes unnecessary duplication of data, thus utilising more space and if you want to make a change then you'll have to update many fields.

But data redundancy comes with a few advantages too in which we may have data redundancy are as follows:

  • alternative data backup
  • faster data access - beneficial in customer-service based organisation whose customers expect promptness
  • better security
  • improved data reliability

Reasons that cause data redundancy is that when the same piece of data is stored in two or more separate places. It occurs when the data is not normalised and it causes anomalies like insert, delete and update.

Data redundancy increases the cost as well.

Add a comment
Know the answer?
Add Answer to:
1. a. Explain why the functional dependency with the primary key as the determinant and all...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Dependency Very Good dependency (key dependency) : XA where Table Very good If all dependencies i...

    Dependency Very Good dependency (key dependency) : XA where Table Very good If all dependencies in a table are '"very good", the table is in BCNF X is a candidate key Good Good dependency: X-> A where If all dependencies in a table are "very good" or "good", the table is in 3NF X is not a candidate key X is a part of a candidate key A is prime attribute Bad Bad dependency (Transitive Dependency): X A where If...

  • Examine the determinants of the functional dependencies. If any determinant is not a candidate key, the...

    Examine the determinants of the functional dependencies. If any determinant is not a candidate key, the relation is not well formed. In this case: a. Place the columns of the functional dependency in a new relation of their own. b. Make the determinant of the functional dependency the primary key of the new relation. c. Leave a copy of the determinant as a foreign key in the original relation. d. Create a referential integrity constraint between the original relation and...

  • Decompose the given relation into relations in 2NF. For each of the new relations, draw a functional dependency diagram, and state if it is in 3NF and why. If your answer is no, describe how to normal...

    Decompose the given relation into relations in 2NF. For each of the new relations, draw a functional dependency diagram, and state if it is in 3NF and why. If your answer is no, describe how to normalise the relation to be in 3NF (c) The relation appointment is given below: appointment (patientID, patientName, patientAddress, aDate, aTime, nurseiD, nurseName, notes) where the primary key is underlined. It records the details of patient appointments with nurses. (i) Draw the functional dependency diagram...

  • DBMS class funcbonal U in & set tion of the principle of closure ot of tunca...

    DBMS class funcbonal U in & set tion of the principle of closure ot of tunca te key(s) of a relation schen a set of functional superkey n attribute at a time from K unt K ence rules for of an attribute uses a It is possible to progressively dencies through the systematic ond method for identitying the candida l dependencies that prevai hat of decomposition. In this method. given Universal Relation Schema (URS), the superkey, K, consisting of a...

  • Suppose we have the following relation (R) that keeps track of car sales: R(car date_sold, salesperson#,...

    Suppose we have the following relation (R) that keeps track of car sales: R(car date_sold, salesperson#, comission_rate, discount) In addition to the functional dependency implied by the primary key (car#), assume the following functional dependencies: date_sold discount salesperson commission_rate Explain why this relation is not in Boyce-Codd Normal Form (BCNF). a. b. Show how you would normalize this relation to achieve Boyce-Codd Normal Form by drawing a new relational schema. Highlight all primary keys by underlining them and use arrows...

  • Assume that the primary key of this table consists of two components: Author's ID (AID) and...

    Assume that the primary key of this table consists of two components: Author's ID (AID) and Book number (BNbr). The table includes data regarding authors, books, and publishers. In addition, it tells what an individual author's per book royalty amount is in the case of multi-authored books. Covert the table to a relation if it is not a relation already, Show the functional dependency among all the attributes and covert the relation into the third normal form.

  • The following is the relation notation of the Veterinary Office List. VETERINARY_OFFICE (PetID, PetName, PetType, PetBreed,...

    The following is the relation notation of the Veterinary Office List. VETERINARY_OFFICE (PetID, PetName, PetType, PetBreed, OwnerID, OwnerLastName, OwnerFirstName, ServiceDescription, ServiceDate, ServiceCharge) The functional dependencies are given below: PetID -> PetName, PetType, PetBreed, OwnerID, OwnerLastName, OwnerFirstName OwnerID -> OwnerLastName, OwnerFirstName ServiceDescription -> ServiceCharge PetID, ServiceDate -> ServicedDescription, ServiceCharge Assumption: A pet belongs to only one owner, while an owner may have more than one pet. A pet receives at most one treatment on any given date. Use the functional dependencies...

  • Language: SQL - Normalization and Functional Dependencies Part 4 Normalization and Functional Dependencies Consider the following relation R(A, B, C, D)and functional dependencies F that hold o...

    Language: SQL - Normalization and Functional Dependencies Part 4 Normalization and Functional Dependencies Consider the following relation R(A, B, C, D)and functional dependencies F that hold over this relation. F=D → C, A B,A-C Question 4.1 (3 Points) Determine all candidate keys of R Question 4.2 (4 Points) Compute the attribute cover of X-(C, B) according to F Question 43 (5 Points) Compute the canonical cover of F.Show each step of the generation according to the algorithm shown in class....

  • For each relation: a) List Functional Dependencies. b) Based on the given primary key, is the...

    For each relation: a) List Functional Dependencies. b) Based on the given primary key, is the relation in 1NF, 2NF, or 3NF? Why or why not? c) Normalize the relation successively into 3NF, if it is not already in 3NF. FACULTY(FacNo, FacName, DeptNo, DeptName, DeptLoc, InsurPlanNo, InsurPlanDesc) ORDER(OrdNo, OrdDate, CustNo, PartNo, Qty, UnitPrice)

  • 1. Define data dependency, and explain only two reasons why this is undesirable. Explain the solution...

    1. Define data dependency, and explain only two reasons why this is undesirable. Explain the solution to this. 2. One of the advantages of a database management system is to provide data independence. Explain this.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT