Check out example codes for "sql join". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

SELECT column_name(s)

FROM table1

LEFT JOIN table2
 ON table1.column_name = table2.column_name;

Code Example 3

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

Code Example 4

SELECT column_name(s)

FROM table1

INNER JOIN table2
 ON table1.column_name = table2.column_name;

Code Example 5

/*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;

Code Example 6

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

Learn ReactJs, React Native from akashmittal.com