Question: Consider the following schema for a relational database that stores customers' book reviews. A book may receive multiple reviews, but a customer can only review
Consider the following schema for a relational database that stores customers'
book reviews. A book may receive multiple reviews, but a customer can only
review a book once.
Primary keys are underlined, and foreign keys are in italics. With reference to
the schema, answer the following questions.
a Using the following information, write an SQL query to create the Review
table. You should use appropriate data types and include all applicable
constraints of the relational model.
BookID is a fixedlength string of characters in length, eg B
CustomerNo is a fixedlength string of characters in length, eg
C
Allowed rating values are whole numbers from to
ReviewDate should default to the current date.
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
