Question: Use the Relational Data Model to design a database that stores customers online activity. customers book purchases reviews ratings Complete the following- *List the relationships

Use the Relational Data Model to design a database that stores customers online activity.

customers book purchases

reviews

ratings

Complete the following-

*List the relationships between your entities

*List any relationship-specific attributes.

*Convert your set of entities, attributes and relations into a database schema.

*Specifically, write down the table names, the columns in each table, and specify which columns are primary keys and which ones are foreign keys.

*Using your database design, write an SQL query to retrieve the customer ID's (or customer names, either is fine) of all customers that gave the book "Alice in Wonderland" a rating of 5. Using your database design, write an SQL query to insert a new purchase done by customer John Smith, whose ID is 1234, to the book "The Three Musketeers", whose ID is 5678.

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!