Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Page 2 of 5 a . Draw its dependency diagram and identify all dependencies, including all partial and transitive dependencies. b . Remove all partial

Page 2 of 5
a. Draw its dependency diagram and identify all dependencies, including all partial and transitive dependencies.
b. Remove all partial dependencies, and draw the new dependency diagrams. Identify the normal forms for each
table structure you created. 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. c. Draw the dependency diagrams that are in 3NF.(Hint: You might have to create a few new attributes. Also
make sure that the new dependency diagrams contain attributes that meet proper design criteria; that is,
make sure there are no multivalued attributes, that the naming conventions are met, and so on.)
d. Draw the Crow's Foot ERD. ERD should be created starting from solution of part b (normalized form) and then
further enhanced to reflect the correct business scenario.
e. Create the database and insert data as per Table 1 and additional data for the sake of completeness.
f. Formulate and execute the following queries.
i. Write a query to display product Prod_code,_Prod_QOH and Prod_PRICE for all the products where
price is greater than 200.
ii. Write a query to display prod_num of products that are supplied by VEND_CODE between 230 and
iii. List all the products in products table in descending order of the price
iv. Using the 'PRODUCT' table as a reference, construct a SQL query to calculate the total value of the
products currently in inventory (name the column as Tot_worth.
v. Display name of VENDOR who supplied product '123-21UUY'.
vi. Write a single query that will double the price of product supplied by vendor whose name is 'James
Johnson'. (Note: you have to strictly use SUBQUERY to extract vendor code based on vendor name
and use vend_code to update the price)
g. If you are a database administrator, what measures you will apply to ensure the security of the data? Using the INVOICE table structure shown below, do the following: a. 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 any invoice number may reference more than one product. (Hint. This table uses a composite primary key.) b. Remove all partial dependencies, draw the new dependency diagrams, and identify the normal forms for each table structure you created. c. Remove all transitive dependencies and draw the new dependency diagrams. Also, identify the normal forms for each table structure you created.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions