Lab Assignment 4 - 7
Lab Assignment 4 - 7
Lab Assignment
b) Product_master
Salesma Salesma Address City Pin State Salamt Tgt_to_get Ytd Remark
n_no nname cod Sal
e es
500001 Kiran A/14 Bom 400002 Mah 3000 100 50 Good
worli bay
500002 Manish 65,narim Bom 400001 Mah 3000 200 100 Good
an bay
500003 Ravi P-7 Bom 400032 Mah 3000 200 100 Good
Bandra bay
500004 Ashish A/5 Bom 400044 Mah 3500 200 150 Good
Juhu bay
Data for sales order table:
1. Find out the product which has been sold to ‘Ivan Sayross.’
2. Find out the product and their quantities that will have do delivered.
3. Find the product_no and description of moving products.
4. Find out the names of clients who have purchased ‘CD DRIVE’
5. List the product_no and s_order_no of customers haaving qty ordered less than
5from the order details table for the product “1.44 floppies”.
6. Find the products and their quantities for the orders placed by ‘Vandan Saitwal ’
and “Ivan Bayross”.
7. Find the products and their quantities for the orders placed by client_no “C00001”
and “C00002”
8. Find the order No,, Client No and salesman No. where a client has been received
by more than one salesman.
9. Display the s_order_date in the format “dd-mm-yy” e.g. “12- feb-96”
10. Find the date , 15 days after date.
Lab Assignment – 6
Q. 1. Print the description and total quantity sold for each product.
Q. 3. Calculate the average quantity sold for each client that has a maximum order value
of 15000.
Q. 6. Find the products and their quantities for the orders placed by ‘Vandana’ and ‘Ivan’.
Q. 8. Select product_no, product description and qty ordered for each product.
Q. 9. Display the order number and day on which clients placed their order.
Q. 10. Display the month and Date when the order must be delivered.
Lab Assignment – 7
2. Find the customer name, address, city and pincode for the client who has placed
order no “019001”
3. Find the client names who have placed order before the month of May 96.
4. Find out if product “1.44 Drive” is ordered by only client and print the client_no
5. find the names of client who have placed orders worth Rs.10000 or more.
7. Select the names of persons who are in Mr. Pradeep’s department and who have
8. Select all the clients and the salesman in the city of Bombay.
9. Select salesman name in “Bombay” who has atleast one client located at“Bombay”