/*Two tables: CUSTOMERS table and ORDERS table. ORDERS table contains STATUS attribute.*/ SELECT customers.customerNumber, customerName, orderNumber, status FROM customers LEFT JOIN orders ON orders.customerNumber = customers.customerNumber;
SELECT Student_details.*, Attendance.* FROM Student_details LEFT JOIN Attendance ON Student_details.s_id = Attendance.s_id;
SELECT Orders.OrderID, Customers.CustomerName, Orders.OrderDate FROM Orders INNER JOIN Customers ON Orders.CustomerID=Customers.CustomerID;