Question

3. Using the INVOICE table structure shown in Table P6.3, do the following: Table P6.3 a.  ...

3. Using the INVOICE table structure shown in Table P6.3, do the following:


Table P6.3

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 forms for each table structure you created.”

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

3a.

Identify that (INV_NUM, PROD_NUM) as primary key, because, using this pair any row in the table can be uniquely identified.

Identify the following dependencies:

Desirable dependencies:

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

Partial dependencies:

INV_NUM SALE_DATE

PROD_NUM PROD_DESCRIPTION, VEND_CODE, VEND_NAME, PROD_PRICE

Transitive dependency:

PROD_NUMVEND_NAME (i.e. PROD_NUMVEND_CODE, VEND_CODE VEND_NAME)

3.b

To remove partial dependencies, create new tables as follows:

R2: (INV_NUM, SALE_DATE) - 3NF

R3: (PROD_NUM, PROD_DESCRIPTION, VEND_CODE, VEND_NAME, PROD_PRICE)-2NF

R3 have no partial dependencies. Therefore R3 is said to be 2NF. But, R3 is not 3NF, because, R3 still have transitive dependencies.

R4: (INV_NUM, PROD_NUM, QUANT_SOLD)-3NF

R2 and R4 are said to be 3NF, because R2 and R4 has not partial or transitive dependencies

3.c

To remove transitive dependencies, each transitive dependency into two tables as follows:

R5: (PROD_NUM, PROD_DESCRIPTION, VEND_CODE, PROD_PRICE) -3NF

R6: (VEND_CODE, VEND_NAME)-3NF

Add a comment
Know the answer?
Add Answer to:
3. Using the INVOICE table structure shown in Table P6.3, do the following: Table P6.3 a.  ...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Using the STUDENT table structure shown in Table P6.4, do the following: a. Write the relational...

    Using the STUDENT table structure shown in Table P6.4, do the following: a. Write the relational schema and draw its dependency diagram. Identify all dependencies, including all transitive dependencies. b. Write the relational schema and draw the dependency diagram to meet the 3NF requirements to the greatest practical extent possible. If you believe that practical considerations dictate using a 2NF structure, explain why your decision to retain 2NF is appropriate. If necessary, add or modify attributes to create appropriate determinants...

  • need help! 1. To keep track of vendors and products they supply, XYZCorp. uses the table...

    need help! 1. To keep track of vendors and products they supply, XYZCorp. uses the table structure shown below. Assuming that the sample data are representative, draw a dependency diagram in Visio that shows all functional dependencies including both partial and transitive dependencies. (Hint: Look at the sample values to determine the nature of the relationships.) VEND TYPE Non-profit organization Non-profit organization Profit organization Profit organization Profit organization PART CODE 1234 PART DESC Logic Chip VEND NAME Fast Chips VEND...

  • 1. Using the STUDENT table structure shown in Table P6.4, do the following. Table P6.4 Sample...

    1. Using the STUDENT table structure shown in Table P6.4, do the following. Table P6.4 Sample STUDENT Records Attributes Name Sample Value Sample Value Sample Value Sample Value Sample Value STU_NUM STU_LNAME STU_MAJOR DEPT_CODE DEPT_NAME DEPT_PHONE COLLEGE_NAME ADVISOR_LNAME ADVISOR_OFFICE ADVISOR_BLDG ADVISOR_PHONE STU_GPA STU_HOURS STU_CLASS 211343 stephanos Accounting ACCT Accounting 4356 Business Admin Grastrand T201 Torre Building 2115 3.87 75 junior 200128 Smith Accounting ACCT Accounting 4356 Business Admin Grastrand T201 Torre Building 2115 2.78 45 Sophomore 199876 Jones Marketing MKTG...

  • Chapter 6 Homework Answer the questions below Note In drawing the diagrams, use the textbook nota...

    Chapter 6 Homework Answer the questions below Note In drawing the diagrams, use the textbook notation . In drawing the diagram, you can use any (diagraming) software, such as Draw.io, Microsoft Visio, LucidChart, or even Microsoft Word. Copy and paste the diagram to Microsoft Word or convert them PDF and Submit the Word file or PDF file o o Include diagram ONLY, not entire software screen Your submission should be readable . Put your name on your document Due date:...

  • VEND CODE -> VEND NAME Perry Computer Inc. uses the following INVOICE table keep track of...

    VEND CODE -> VEND NAME Perry Computer Inc. uses the following INVOICE table keep track of their data. Relational schema is listed below. INVOICE (INV NUM, PROD NUM, SALE_DATE, PROD_DESCRIPTION, VEND_CODE, VEND_NAME, NUM SOLD, PROD_PRICE) Where: INV NUM -> SALE DATE PROD NUM-PROD DESCRIPTION, VEND_CODE, VEND NAME, PROD PRICE QUESTION: C. Propose a better design (with no data redundancy) and indicate the normal form of your table(s). Please use relational schema format like the INVOICE table in Perry's original design....

  • 2. The following is the relation notation of a table for a veterinary office. [70 pts....

    2. The following is the relation notation of a table for a veterinary office. [70 pts. total] 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 > ServiceDescription, ServiceCharge Assumptions: 1)A pet belongs to only one owner, 2) an owner may have more than one pet, 3A pet receives at most one treatment on any...

  • To keep track of patients and clinician, etc., a private hospital uses the table structure shown...

    To keep track of patients and clinician, etc., a private hospital uses the table structure shown in Table 1 Patient Report a. Given that information, draw the dependency diagram. Make sure that you label the transitive and/or partial dependencies. (5 Marks) Patient Report nameClini 160 104 310 A210 19 atient nan addressTriage cian locationDeparting rst seen stahs W237651 Wilbins Albary W237631Wiliams Albary B849821 Baker S154987 alls ba ieadache Aditted parted paeted odd vid thurst raage 234159 acobs itted Zea

  • Question 29 What entity type is used to convert a many-to-many relationship to two one-to-many relationships?...

    Question 29 What entity type is used to convert a many-to-many relationship to two one-to-many relationships? repeating entity intersection entity associative entity attributive entity Question 30 A many-to-many relationship can be directly modeled in a relational database such as Microsoft Access. True False Question 31 Which order is correct for the designer to normalize a data structure? I. Remove all repeating groups and identify the primary key. II. Remove any transitive dependencies. III. Remove all partial dependencies and place them...

  • for question (c) do like this 3. A table to record the information of Dentists, Patients,...

    for question (c) do like this 3. A table to record the information of Dentists, Patients, and Appointments in a clinic is given below. DentistNo DentistName PatientNo PatientName PatientPhone AppointmentDate Appointment Time AppointmentFee On a single day each patient can have more than one appointment. It is known that DentistNo is unique for each dentist. PatientNo is unique for each patient. PatientNo must not be used as a composite key. A patient is allowed to see any dentist. (a) Use...

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
ADVERTISEMENT