Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone solve this Data Base problems the first question is convert the EER diagram into relational schema .. 1. Convert the EER diagram below

Can someone solve this Data Base problems
image text in transcribed
image text in transcribed
image text in transcribed
the first question is convert the EER diagram into relational schema ..
1. Convert the EER diagram below representing users and posts on a discussion board into a collection of tables with constraints. 2. Write SQL statements to create all of the tables in your answer to the previous question. Use your best judgment to select a plausible domain for each attribute. 3. Write an SQL statement to create a Files table to represent a source file stored in a repository (such as GitHub). Source files need to store the file name, their contents, a version number, the file size, the username of the user who uploaded them, and when they were uploaded. Use your best judgment to determine a reasonable domain for each atribute and a primary key for the table. 4. Write an SQL statement to modify the Files table so that the username it stores represents a user in the Users table. Write relational algebra expressions for the following queries based on the tables below. - Product(SKU, Description, Price, Location) - Guests(CardNo, Name, Address) - Purchase(CardNo, SKC, StoreNum, When, Markdown) - Store(StoreNo. Address, Phone) - Inventory(SKU, StoreNum. Qty) 5. All of the products not carried at store 1416 6. Descriptions of all products purchased by both Laverne Cox and Vanna White. 7. The greatest discount on any product (renaming can be used to calculate a derived attribute; e.g., 100%Markdown/PriceDiscount(.)) 8. The names of all customers whose address doesn't match the address of a store they've shopped at 9. The card numbers of customers who have bought all products (be careful that you don't require them to buy everything on the same day, from the same store, with the same markdown)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building The Data Lakehouse

Authors: Bill Inmon ,Mary Levins ,Ranjeet Srivastava

1st Edition

1634629663, 978-1634629669

More Books

Students also viewed these Databases questions

Question

Briefly explain the path-goal theory.

Answered: 1 week ago

Question

What are six well-being benefits of mindfulness?

Answered: 1 week ago

Question

Complexity of linear search is O ( n ) . Your answer: True False

Answered: 1 week ago