Create the tables and appropriate constraints based on the following ER diagram. Use appropriate data types. Note that the product category column should only accept
Create the tables and appropriate constraints based on the following ER diagram.
Use appropriate data types. Note that the product category column should only accept S, M, or L
and the product description should be unique. In addition the quantity and price columns should
have values greater than zero. Make the cid in the customers table an identity column. All
columns are required.
Customers cid (pk)* cname cemail *identity attribute Orders oid (pk) odate cid (fk) productid (fk) quantity Products pid (pk) description category(S/M/L) price
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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