Question: P 0 7 0 2 Royal Products Using the P 0 7 0 2 . docx document in the student folder, create P 0 7
P Royal Products
Using the Pdocx document in the student folder, create Psql and build the Royal Products
database:
The DROP and CREATE statements to build the database.
Prefix table names with rp
Determine the data types and lengths.
Add constraints:
o Add NOT NULL column optionality constraints at the column level.
o Add DEFAULT constraints at the column level.
o Create ALTER TABLE statements for PKs FKs and UKs.
o Add CHECK constrains as follows:
The default customer credit limit is
The default rep commission rate is
Customer state must be MI IL ON
The rep rate must be in the range to inclusive.
Customer credit limit must not exceed $
Customer balance must be less than customer credit limit
Order date must be greater than
Quantity on hand for Products must be in the range to inclusive.
The products class must be HW SG AP
The product price must be in the range inclusive.
Submit Psql
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
