Types Of Join Data
Left outer join: LEFT Join is useful for returning all records from a table, even if there are no matching records in another table. For example, we could use a LEFT JOIN to return all customers, even if they have not placed any orders.
Right outer join: RIGHT JOINs are useful for returning all records from a table, even if there are no matching records in another table. For example, we could use a RIGHT JOIN to return all products that have been ordered, even if the product has been discontinued.
Inner join: An inner join will only return rows that have matching records in both tables. This is the most common type of join, and it is useful for creating charts or dashboards that show only the data that is common to both tables. For example, you could use an inner join to create a chart that shows the orders that have been placed by customers in a particular state.
Full outer join: A full outer join will return all rows from both tables, even if there are no matching rows. This is the least common type of join, but it can be useful for creating charts or dashboards that show all of the data from both tables, even if some of the data is not related to each other. For example, you could use a full outer join to create a chart that shows all of the customers who have placed orders, as well as all of the products that have been ordered, even if some of the customers have not ordered any products and some of the products have not been ordered by any customers.
Last updated