Exp3part2
Exp3part2
FROM tablename
WHERE searchcondition;
Practical Tasks:
i) client_master
ii) Product_master
Columnname datatype size
Product_no varchar 6
Description varchar 20
Profit_percent number 10,2
Unit_measure varchar 10
Qty_on_hand number 10
Reoder_lvl number 10
Sell_price number 10
Cost_price number 10
3:- On the basis of above two tables answer the following queries:
iii) List the various products available from the product_master table.
vi) Find the products with description as ‘1.44 drive’ and ‘1.22 Drive’.
vii) Find all the products whose sell price is greater then 5000.
viii) Find the list of all clients who stay in in city ‘Bombay’ or city ‘Delhi’ or ‘Madras’.
ix) Find the product whose selling price is greater than 2000 and less than or equal to 5000.
x) List the name, city and state of clients not in the state of ‘Maharashtra’.
Practical Tasks:
Using the table product master and client master answer the following questions.
2. Delete the record with client 0001 from the client master table.
6. Find out the clients who stay in a city whose second letter is a.
7. Find out the name of all clients having ‘a’ as the second letter in their names.
12. Determine the maximum and minimum prices . Rename the tittle as ‘max_price’ and min_price
respectively.
13. Count the number of products having price greater than or equal to 1500.