Database Practices Lab
Database Practices Lab
2. For the table designed in question number 1 above, answer the following queries
using SQL:
(a) Display name and date_of_expiry of all the products whose price is more than
500.
(b) Display name, product ID and price of all the products whose
date_of_manufacture is after "01-01-2018".
(c) Display name and date_of_manufacture and date_of_expiry of all the products
whose price is between 5,000 and 10,000.
(d) Display name, product ID and model of all the products which are going to
expire after two months from today.
5. For the table designed in question number 1 above, answer the following queries
using SQL:
(a) Display name and date_of_expiry of all the products whose price is more than
500.
(b) Display name, product ID and price of all the products whose
date_of_manufacture is after "01-01-2018".
(c) Display name and date_of_manufacture and date_of_expiry of all the products
whose price is between 5,000 and 10,000.
(d) Display name, product_ID and model of all the products which are going to
expire after two months froin today.
6. For the above database created in Q1, answer the following queries using SQL:
(a) Find all the parts supplied by supplier "123".
(b) Find the cities where supplier "324" is located.
(c) Find another supplier who supplies at least one part supplied by supplier "431".
(d) Find all the projects where part "P7" is used.
(e) Find all the suppliers who supplies part "P5".