0% found this document useful (0 votes)
12 views2 pages

query

Uploaded by

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

query

Uploaded by

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

*query

1 select name from client_master24;

2 select * from client_master24;

3 select name, city from client_master24;

4 select description from product_master24;

5 select name from client_master24 where name like '_a%';

6 select name from client_master24 where city like '_a%';

7 select name from client_master24 where city in ('bombay', 'delhi', 'madras');

8 select name from client_master24 where city = 'bombay';

9 select name from client_master24 where bal_due > 10000;

10 select * from sales_order24 where to_char(s_order_date, 'mm') = '01';

11 select * from sales_order24 where client_no in ('c00001', 'c00002');

12 select * from product_master24 where description in ('1.44 drive', '1.22


drive');

13 select * from product_master24 where sell_price > 2000 and sell_price <= 5000;

14 select product_no, sell_price, sell_price * 15 as new_price from


product_master24 where sell_price > 1500;

15 rename the new column in the above query as new_price (already done in question
14).

16 select * from product_master24 where cost_price < 1500;

17 select * from product_master24 order by description;

18 select product_no, sqrt(sell_price) as sqrt_price from product_master24;

19 select product_no, description, cost_price / (sell_price - 100) as result from


product_master24 where description = '540 hdd';

20 select name, city, state from client_master24 where state != 'maharashtra';

21 select product_no, description, sell_price from product_master24 where


description like 'm%';

22 select * from sales_order24 where order_status = 'canceled' and


month(order_date)=3;

23 select count(*) as total_orders from sales_order24;

24 select avg(sell_price) as average_price from product_master24;

25 select min(sell_price) as minimum_price from product_master24;

26 select max(sell_price) as maximum_price from product_master24;


27 select count(*) as product_count from product_master24 where sell_price>=1500;

28 select*from product_master24 where qty_on_hand<recorder_level;

29

You might also like