DATABASE SYSTEMS (LL)-W/ACCESS>CUSTOM<
DATABASE SYSTEMS (LL)-W/ACCESS>CUSTOM<
15th Edition
ISBN: 9781337762328
Author: Coronel
Publisher: CENGAGE C
bartleby

Concept explainers

Question
Book Icon
Chapter 6, Problem 3P

a.

Program Plan Intro

Normalization:

The process used to minimize data redundancy and dependency in a relational database is known as normalization. The database table is divided into two or more tables and defines the relationship between those tables.

Second normal form (2NF):

  • The value of all non-primary key attributes should be dependent on the primary key attribute.
    • If any attribute is depending on the partial primary key then it should determine the other attributes for an instance of the entity.
  • The partial dependencies should be removed from the data model.

Third normal form (3NF):

  • The value of any non-primary key attributes will not depend on any other non-primary key attributes.
    • If any non-primary key attributes depend on any other non-primary key attribute then it should be moved or deleted.
    • It is termed as transitive dependency.

Partial dependency:

A partial dependency exists at that time of an attributes depends only a part of primary key. This dependency is related with 1st normal form.

Transitive dependency:

A transitive dependency exists at that time of an attributes depends on another attribute which is not part of primary key.

Functional dependency:

An association between two attributes or two set of attributes in a same relational database table, which is having some constraints is known as functional dependency.

  • In a table one attribute is functionally dependent on another attribute to take one value.

a.

Expert Solution
Check Mark

Explanation of Solution

Construct the dependency diagram with all partial and transitive dependencies:

The relational schema for given INVOICE table is given below:

Invoice(INV_NUM, PROD_NUM, SALE_DATE, PROD_LABEL, VEND_CODE, VEND_NAME, QUANT_SOLD, PROD_PRICE)

  • Here, “INV_NUM” and “PROD_NUM” indicates the primary key.

The representation of dependency diagram with all partial and transitive dependencies is shown below:

DATABASE SYSTEMS (LL)-W/ACCESS>CUSTOM<, Chapter 6, Problem 3P , additional homework tip  1

Explanation:

In the above dependency diagram,

  • The partial dependencies are,

    INV_NUM -> (SALE_DATE)

    PROD_NUM -> (PROD_LABEL, VEND_CODE, VEND_NAME, PROD_PRICE)

  • The transitive dependency is,

    VEND_CODE -> (VEND_NAME)

b.

Program Plan Intro

Normalization:

The process used to minimize data redundancy and dependency in a relational database is known as normalization. The database table is divided into two or more tables and defines the relationship between those tables.

Second normal form (2NF):

  • The value of all non-primary key attributes should be dependent on the primary key attribute.
    • If any attribute is depending on the partial primary key then it should determine the other attributes for an instance of the entity.
  • The partial dependencies should be removed from the data model.

Third normal form (3NF):

  • The value of any non-primary key attributes will not depend on any other non-primary key attributes.
    • If any non-primary key attributes depend on any other non-primary key attribute then it should be moved or deleted.
    • It is termed as transitive dependency.

Partial dependency:

A partial dependency exists at that time of an attributes depends only a part of primary key. This dependency is related with 1st normal form.

Transitive dependency:

A transitive dependency exists at that time of an attributes depends on another attribute which is not part of primary key.

Functional dependency:

An association between two attributes or two set of attributes in a same relational database table, which is having some constraints is known as functional dependency.

  • In a table one attribute is functionally dependent on another attribute to take one value.

b.

Expert Solution
Check Mark

Explanation of Solution

Construct the dependency diagram by removing all partial dependencies:

The new dependency diagram is represented by removing all partial dependencies in INVOICE table.

First table:

The relational schema for first table is given below:

 3NF(INV_NUM, PROD_NUM, SALE_DATE, QUANT_SOLD)

  • Here, “INV_NUM” and “PROD_NUM” indicates the primary keys.
  • The relation is in third normal form (3NF), since there is no transitive dependency and no repeated attributes.

The representation of dependency diagram removes all partial dependencies in first table are shown below:

DATABASE SYSTEMS (LL)-W/ACCESS>CUSTOM<, Chapter 6, Problem 3P , additional homework tip  2

Second table:

The relational schema for second table is given below:

3NF(INV_NUM, SALE_DATE)

  • Here, “INV_NUM” indicates the primary key.
  • The relation is in third normal form (3NF), since there is no transitive dependency and no repeated attributes.

The representation of dependency diagram removes all partial dependencies in second table are shown below:

DATABASE SYSTEMS (LL)-W/ACCESS>CUSTOM<, Chapter 6, Problem 3P , additional homework tip  3

Third table:

The relational schema for third table is given below:

2NF(PROD_NUM, PROD_LABEL, VEND_CODE, VEND_NAME, PROD_PRICE)

  • Here, “PROD_NUM” indicates the primary key.
  • The relation is in third normal form (2NF), since there is transitive dependency in table.

The representation of dependency diagram removes all partial dependencies in third table are shown below:

DATABASE SYSTEMS (LL)-W/ACCESS>CUSTOM<, Chapter 6, Problem 3P , additional homework tip  4

c.

Program Plan Intro

Normalization:

The process used to minimize data redundancy and dependency in a relational database is known as normalization. The database table is divided into two or more tables and defines the relationship between those tables.

Second normal form (2NF):

  • The value of all non-primary key attributes should be dependent on the primary key attribute.
    • If any attribute is depending on the partial primary key then it should determine the other attributes for an instance of the entity.
  • The partial dependencies should be removed from the data model.

Third normal form (3NF):

  • The value of any non-primary key attributes will not depend on any other non-primary key attributes.
    • If any non-primary key attributes depend on any other non-primary key attribute then it should be moved or deleted.
    • It is termed as transitive dependency.

Partial dependency:

A partial dependency exists at that time of an attributes depends only a part of primary key. This dependency is related with 1st normal form.

Transitive dependency:

A transitive dependency exists at that time of an attributes depends on another attribute which is not part of primary key.

Functional dependency:

An association between two attributes or two set of attributes in a same relational database table, which is having some constraints is known as functional dependency.

  • In a table one attribute is functionally dependent on another attribute to take one value.

c.

Expert Solution
Check Mark

Explanation of Solution

Construct the dependency diagram by removing all transitive dependencies:

The new dependency diagram is represented by removing all transitive dependencies in INVOICE table.

First table:

The relational schema for first table is given below:

 3NF(INV_NUM, PROD_NUM, QUANT_SOLD)

  • Here, “INV_NUM” and “PROD_NUM” indicates the primary keys.
  • The relation is in third normal form (3NF), since there is no transitive dependency and no repeated attributes.

The representation of dependency diagram removes all partial dependencies in first table are shown below:

DATABASE SYSTEMS (LL)-W/ACCESS>CUSTOM<, Chapter 6, Problem 3P , additional homework tip  5

Second table:

The relational schema for second table is given below:

3NF(INV_NUM, SALE_DATE)

  • Here, “INV_NUM” indicates the primary key.
  • The relation is in third normal form (3NF), since there is no transitive dependency and no repeated attributes.

The representation of dependency diagram removes all transitive dependencies in second table are shown below:

DATABASE SYSTEMS (LL)-W/ACCESS>CUSTOM<, Chapter 6, Problem 3P , additional homework tip  6

Third table:

The relational schema for third table is given below:

3NF(VEND_CODE, VEND_NAME)

  • Here, “VEND_CODE” indicates the primary key.
  • The relation is in third normal form (3NF), since there is no transitive dependency and no repeated attributes.

The representation of dependency diagram removes all transitive dependencies in third table are shown below:

DATABASE SYSTEMS (LL)-W/ACCESS>CUSTOM<, Chapter 6, Problem 3P , additional homework tip  7

Fourth table:

The relational schema for final table is given below:

2NF(PROD_NUM, PROD_LABEL, VEND_CODE, PROD_PRICE)

  • Here, “PROD_NUM” indicates the primary key.
  • The relation is in third normal form (3NF), since there is no transitive dependency and no repeated attributes.

The representation of dependency diagram removes all transitive dependencies are shown below:

DATABASE SYSTEMS (LL)-W/ACCESS>CUSTOM<, Chapter 6, Problem 3P , additional homework tip  8

d.

Explanation of Solution

The representation of Crow’s Foot Entity Relational Diagram (ERD) is shown below:

The following data model shows the solution for the given question.

DATABASE SYSTEMS (LL)-W/ACCESS>CUSTOM<, Chapter 6, Problem 3P , additional homework tip  9

Explanation:

  • In the above data model, one invoice can contains many invoice line.
    • The “INVOICE” entity contains the “INV_NUM” and “SALE_DATE” attributes.
      • The primary key of “INVOICE” entity is “INV_NUM”.
    • The “INV_LINE” entity contains the “INV_NUM”, “PROD_NUM” and “QUANT_SOLD” attributes.
      • The primary and foreign key of this entity is “INV_NUM”.
      • The foreign key of this entity is “PROD_NUM”.
  • The product is written in more than one invoice line.
    • The “PRODUCT” entity contains the “PROD_NUM”, “VEND_CODE”, “PROD_LABEL”, and “PROD_PRICE” attributes.
      • The primary key of “PROD_NUM” for this entity.
      • The foreign key of this entity is “VEND_CODE”.
  • The vendor supplies more than one product.
    • The “VENDOR” entity contains the “VEND_CODE” and “VEND_NAME” attributes.
      • The primary key of “VEND_CODE” entity.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Using the INVOICE table structure shown in Table P6.3, do the following:TABLE P6.3a. Write the relational schema, draw its dependency diagram, and identify alldependencies, including all partial and transitive dependencies. You can assumethat the table does not contain repeating groups and that an invoice numberreferences more than one product. (Hint: This table uses a composite primarykey.)b. Remove all partial dependencies, write the relational schema, and draw thenew dependency diagrams. Identify the normal forms for each table structureyou created.NoteYou can assume that any given product is supplied by a single vendor, but a vendorcan supply many products. Therefore, it is proper to conclude that the followingdependency exists:PROD_NUM → PROD_LABEL, PROD_PRICE, VEND_CODE, VEND_NAME(Hint: Your actions should produce three dependency diagrams.)c. Remove all transitive dependencies, write the relational schema, and draw thenew dependency diagrams. Also identify the normal forms for…
Using the INVOICE table structure shown in Table P6.3, do the following: a. Write the relational schema, draw its dependency diagram, and identify all dependencies, including all partial and transitive dependencies. You can assume that the table does not contain repeating groups and that an invoice number references more than one product. (Hint: This table uses a composite primary key.)b. Remove all partial dependencies, write the relational schema, and draw the new dependency diagrams. Identify the normal forms for each table structure you created.Note: You can assume that any given product is supplied by a single vendor, but a vendor can supply many products. Therefore, it is proper to conclude that the following dependency exists:PROD_NUM S PROD_lABEl, PROD_PRICE, vEND_CODE, vEND_NAME(Hint: Your actions should produce three dependency diagrams.)c. Remove all transitive dependencies, write the relational schema, and draw the new dependency diagrams. Also identify the normal forms for…
Using the INVOICE table structure shown in table P6.3, do the following a. Write the relational schema, draw its dependency diagram, and identify all dependencies, including all partial and transitive dependencies. You can assume that the table does not contain repeating groups and that an invoice number references more than one product. (Hint: This table uses a composite primary key.) b.Remove all partial dependencies, write the relational schema, and draw the new dependency diagrams. Identify the normal forms for each table structure you created. Note You can assume that any given product is supplied by a single vendor, but a vendor can supply many products. Therefore, it is proper to conclude that the following dependency exists: PROD_NUM -+ PROD_LABEL, PROD_PRICE,VEND_CODE, VEND_NAME  ( Hint Your actions should produce three dependency diagrams.) c. Remove all transitive dependencies, write the relational schema, and draw the new dependency diagrams. Also, identify the normal…
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning