Question: This project simulates a hardware store's database, used to keep track of all the items sold. Study the following invoice: Customer ZZZ: User I D
This project simulates a hardware store's database, used to keep track of all the items sold.
Study the following invoice:
Customer ZZZ:
User
Password :
Name & Surname : Mary Williams
Phone Number :
EMail Address :
mwilliams@yahoo.com
Item ID:
Product Name:
Price:
Date:
Door Knob
R
Sliding Door Lock
R
Door Chain Lock
R
Total Items
:
Total Products
:
Figure : Customer InvoiceYou are required to do the following:
List all the attributes of the invoice to create Zero Normal Form.
Normalise the list that you created in Question showing each step from First Normal Form to Third Normal Form. Clearly indicate Primary and Foreign Keys.
Draw the Entity Relationship diagram from the Third Normal Form of Question Use it to set up the tables in the next question.
Write a script file that will create the database and tables that you have designed in your ER diagram. Include Primary Keys, Foreign Keys and other constraints where appropriate.
Insert sample datasinto the tables you have created. Each table should have a minimum of five rows.
Write a view to display all the sales where the saleDate is less than today's date. The view must return the itemID, name of customer and the saleDate.
Create a procedure that will print out a specified invoice for a customer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
