Question: Homework Assignment: Constraints Base your responses on these relations: LOCATION ( Zip _ Code, City, State ) CUSTOMER ( Id , Name, Zip _ Code
Homework Assignment: Constraints
Base your responses on these relations:
LOCATION ZipCode, City, State
CUSTOMERId Name, ZipCode
ORDERCustId Date, Item, Price
Exercises
Express in relational algebra the foreign key constraint: CUSTOMER.ZipCode references LOCATION.ZipCode
Express in relational algebra the constraint that ZipCode is a key of the LOCATION relation
Define an additional constraint that might apply to the LOCATION, CUSTOMER, or ORDER relations individually or in some combination Include the following in your response:
a Describe your constraint as an Englishlanguage statement
b Construct a relational algebra formula that represents your constraint.
c Provide relation instances sample LOCATION, CUSTOMER, andor ORDER tables that demonstrate a violation of your constraint.
Given the relational algebra constraint:
a Translate this constraint into an Englishlanguage statement.
b Does this constraint differ in any way from the foreign key constraint you defined in question If so briefly describe a scenario that would meet the constraint from question but would not meet this new constraint.
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
