Professional Documents
Culture Documents
Q:1 Consider the following table “Product” and write the queries for
the following:
S_No P_Name Qty Cost City
S1 Biscuit 120 12 Delhi
S2 Bread 200 25 Mumbai
S3 Chocolate 350 40 Mumbai
S4 Sauce 400 45 Chennai
S5 Jam 250 30 Delhi
2. Display P_Name, Cost and City for all the products whose Qty is
less than 300.
Ans: Select * from Product where Qty between 100 and 400;
5. Display S_No and P_Name of all the products located in Delhi.
8. Display the Product name and total cost for all the products in the
Product table.
Ans: Select P_Name, Cost*Qty “Total Cost” from Product;