Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
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