Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the e - commercial database schema shown below, write the following queries in ( 1 ) relational algebra and ( 2 ) SQL .

Given the e-commercial database schema shown below, write the following queries in
(1) relational algebra and (2) SQL. State your assumptions if the semantics are not clear.
item(iid, iname, price, category, rating, month, year)
customer(cid, cname, cstreet, ccity)
buy(transID, cid, iid, year, month, day)
advertise(cid,iid)
(a) Find customers who have only bought items with a rating greater than 3

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

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

What should Mary Lynn do?

Answered: 1 week ago

Question

Define two major standards: U.S. GAAP and IFRS.

Answered: 1 week ago