1/*Two tables: CUSTOMERS table and ORDERS table.
2ORDERS table contains STATUS attribute.*/
3SELECT
4 customers.customerNumber,
5 customerName,
6 orderNumber,
7 status
8FROM
9 customers
10LEFT JOIN orders ON
11 orders.customerNumber = customers.customerNumber;
1SELECT bk1.book_name,bk1.isbn_no,bk1.book_price,bk1.pub_lang
2FROM book_mast bk1
3LEFT JOIN book_mast bk2 ON bk1.book_price<bk2.book_price
4WHERE bk2.pub_lang='German';
1SELECT
2 Student_details.*,
3 Attendance.*
4FROM
5 Student_details
6LEFT JOIN Attendance ON
7 Student_details.s_id = Attendance.s_id;