A join in a database refers to the combination of rows from two or more tables based on a related column between them. The result shows one table with columns from the joined tables.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
A join in a database refers to the combination of rows from two or more tables based on a related column between them. The result shows one table with columns from the joined tables.
The types of joins in SQL includes:
As an example,If we have have two tables including "Customers" and "Orders", with the following data:
Customers table:
Orders table:
If we join these two tables on the "CustomerID" column then we will get the following result:
Result of INNER JOIN: