Dbms Exp7
Dbms Exp7
Assessment Marks :
Timeliness (2)
DDL/DML/TCL (2)
Knowledge (2)
Total (10)
Total : (Out of 10)
Teacher's Sign :
2. Find the customer name, address for the client who has placed order no
‘O191’
select client_name, client_address from client_master, sales_order where
client_master.client_no=sales_order.client_no and
sales_order.order_no='O1';
3. Find the clients names who have placed orders before the month of May’96
SELECT client_no, client_name FROM client_master WHERE client_no
IN(SELECT client_no FROM sales_order WHERE TO_CHAR(Dely_date,
'MON,YY') < 'MAY,96');
4. Find the names of clients who have placed orders worth Rs. 10000 or more
SELECT client_name FROM client_master WHERE client_no IN(SELECT
client_no FROM sales_order WHERE order_no IN(SELECT order_no FROM
sales_order_del WHERE(Qty_ordered * product_rate) >= 10000));
5. Retrieve all the orders placed by a client named ‘Rahul Desai’ from the
sales_order table.
select * from sales_order where client_no=(select client_no from
client_master where client_name='Rahul Desai');
6. Retrieve name, address, city of all the clients who have placed an order
through salesman no ‘s001’.