Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A customer would like a database design for an e-commerce website that sells books. He wants to store users, employees, inventory, and shopping cart
A customer would like a database design for an e-commerce website that sells books. He wants to store users, employees, inventory, and shopping cart data for each user. Once the user checks out, their cart data can be assumed to be cleared from the database. Only some employees can alter inventory data and the owner wants to be able to monitor who is making inventory changes for audits. How many relations would you need? What would they be? What attributes would each relation have? Which ones would be primary keys? What foreign keys would each relation have? What links do these create and why is it necessary? Given most databases can only store one item per attribute, how would the shopping cart be handled to allow for users to have an undetermined amount of items in their cart?
Step by Step Solution
★★★★★
3.56 Rating (160 Votes )
There are 3 Steps involved in it
Step: 1
1 I would need four relations users Stores information about the users of the website such as their name email address and shipping address employees ...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