Write sql queries for the following list the names of


Consider the following relations with key underlined.

Customer(C#, Cname, Address)

Item(I#, Iname, Price, Weight)

Order(O#, C#, I#, Quantity)

Write SQL queries for the following:

a. List the names of customers who have ordered items weighing more than 1000 and only those.

b. List the names of customers who have ordered at least one item priced over Rs.500.

c. Create a view called "orders" that has the total cost of every order.

Solution Preview :

Prepared by a verified Expert
Dissertation: Write sql queries for the following list the names of
Reference No:- TGS01538451

Now Priced at $20 (50% Discount)

Recommended (99%)

Rated (4.3/5)