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 fixed-length string of 7 characters in length, e.g., B123456.
CustomerNo is a fixed-length string of 8 characters in length, e.g.,
C2301000.
Allowed rating values are whole numbers from 1 to 5.
ReviewDate should default to the current date.
 Consider the following schema for a relational database that stores customers'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!