Answered step by step
Verified Expert Solution
Link Copied!

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 IDMA
Password :40
Name & Surname : Mary Williams
Phone Number : 01023465782
E-Mail Address :
mwilliams@yahoo.com
Item ID:
Product Name:
Price:
Date:
1
Door Knob
R128.00
2020-06-10
2
Sliding Door Lock
R1290.00
2020-07-17
3
Door Chain Lock
R286.00
2020-07-20
Total Items
:3
Total Products
:3
Figure 1: Customer InvoiceYou are required to do the following:
1.1 List all the attributes of the invoice to create Zero Normal Form.
1.2 Normalise the list that you created in Question 1.1, showing each step from First Normal Form to Third Normal Form. Clearly indicate Primary and Foreign Keys.
1.3 Draw the Entity Relationship diagram from the Third Normal Form of Question 1.2. Use it to set up the tables in the next question.
1.4 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.
1.5 Insert sample datasinto the tables you have created. Each table should have a minimum of five rows.
1.6 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.
1.7 Create a procedure that will print out a specified invoice for a customer.
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

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

Write in exponential form. log 100 100 = 1

Answered: 1 week ago

Question

1. Give yourself plenty of time to eat and get to the exam room.

Answered: 1 week ago