Sql joins are used to fetch/retrieve data from two or more data tables, based on a join condition. A join condition is a relationship among some columns in the data tables that take part in Sql join. Basically data tables are related to each other with keys.
The JOIN keyword is used in an SQL statement to query data from two or more tables, based on a relationship between certain columns in these tables.
Tables in a database are often related to each other with keys.
Different SQL JOINs
Before we continue with examples, we will list the types of JOIN you can use, and the differences between them.- JOIN: Return rows when there is at least one match in both tables
 - LEFT JOIN: Return all rows from the left table, even if there are no matches in the right table
 - RIGHT JOIN: Return all rows from the right table, even if there are no matches in the left table
 - FULL JOIN: Return rows when there is a match in one of the tables
 
No comments:
Post a Comment
Thanks....