Oracle Joins Exercises
Oracle Joins Exercises
6. From the following tables write a SQL query to find the details
of an order. Return ord_no, ord_date, purch_amt, Customer Name,
grade, Salesman, commission.
13. From the following tables write a SQL query to list all
salespersons along with customer name, city, grade, order
number, date, and amount. Condition for selecting list of
salesmen : 1. Salesmen who works for one or more customer or,
2. Salesmen who not yet join under any customer, Condition for
selecting list of customer : 3. placed one or more orders, or 4. no
order placed to their salesman.
14. Write a SQL statement to make a list for the salesmen who
either work for one or more customers or yet to join any of the
customer. The customer may have placed, either one or more
orders on or above order amount 2000 and must have a grade, or
he may not have placed any order to the associated supplier.
15.For those customers from the existing list who put one or
more orders, or which orders have been placed by the customer
who is not on the list, create a report containing the customer
name, city, order number, order date, and purchase amount