0% found this document useful (0 votes)
3 views

task c refresh

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

task c refresh

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

TASK C

C1 :- List thePartsID’s of all parts containing “plastic”.

Select partsID from Parts where Description=”plastic”;

Output

C2:- Find the names of suppliers who supply parts of red color and costing less than$200

Select suppliers.Sname from suppliers,parts,catalogue where parts.Colour=”red” and


catalogue.Cost<200 and parts.partsid=catalogue.partsid and suppliers.Supplierid=catalogue.Supplierid;

Output
C3:-What is the price of the lowest costing part in Melbourne?

Select min(catalogue.cost) from catalogue, suppliers where catalogue.supplierid =suppliers.supplierId


and suppliers.city=”Kolkata”;

Output

C4:-Find the SupplierID’s of suppliers who either supply some red part or who are in NSW.

Select suppliers.supplierid from suppliers,parts,catalogue where


suppliers.supplierid=catalogue.supplierid and parts.partsid=catalogue.partid and parts.colour=”red” and
suppliers.state=”nsw”;

Output

You might also like