You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
programming-examples/sql/Joins/Write a SQL statement to ma...

8 lines
424 B
SQL

/*Write a SQL statement to make a report with customer name, city, order no. order date, purchase amount for those customers
from the existing list who placed one or more orders or which order(s) have been placed by the customer who is not on the list*/
SELECT a.cust_name,a.city, b.ord_no,
b.ord_date,b.purch_amt AS "Order Amount"
FROM customer a
FULL OUTER JOIN orders b
ON a.customer_id=b.customer_id;