Basic SQL Queries-1
Basic SQL Queries-1
S22
Roll no: 95
8.list all the clients who stay in bombay ,delhi or madras using IN operator .
10. list the names of client having balance due is greater than 10000.
12. show the product having description '1.44 Drive' or '1.22 Drive'
13. list the data where order is placed in the month of january.
14. show the product having selling price between 2000 , 5000.
15. list the products having sell price greater than 1500.
17. list the products having cost price less than 1500.
24. Find the product_no and description of non-moving products (eg. products not being sold).
select product_no,description
-> from product_master
-> where product_no not in(
-> select product_no from sales_order_details);
+------------+---------------+
| product_no | description |
+------------+---------------+
| P07865 | 1.22 Floppies |
| P08865 | 1.22 Drive |
+------------+---------------+
25. Find the customers name ,city and pincode for the client who has placed order no
'O19001'.
+-------------+--------+---------+
| name | city | pincode |
+-------------+--------+---------+
| IvanBayross | Bombay | 400054 |
+-------------+--------+---------+
1 row in set (0.00 sec)