Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started