Question: Given the following relational schema, write queries in SQL to answer the following queries Customer (cid, cname, address, city, state) Product (pid, pname, price, inventory)

Given the following relational schema, write queries in SQL to answer the following queries

Customer (cid, cname, address, city, state)

Product (pid, pname, price, inventory) Shipment(sid, cid, shipdate)

Shipped Product(sid, pid, amount)

i. Return the products (name whose name contains 'Rahim' with a price more than the average price.

ii) Find shipping date, the number of shipments to customers with first name Scott.

urgent

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!