Nam V. Do
0
Q:

left join php

/*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;
5
SELECT 
    Student_details.*,
    Attendance.*
FROM
    Student_details
LEFT JOIN Attendance ON 
    Student_details.s_id = Attendance.s_id;
0

 SELECT Orders.OrderID, Customers.CustomerName, Orders.OrderDate
FROM Orders
INNER JOIN Customers ON Orders.CustomerID=Customers.CustomerID;
 
1

New to Communities?

Join the community