Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (9k points)
What is Join in SQL?

1 Answer

0 votes
by (45.3k points)

Join in SQL is a clause that is used to combine records and data from two or more database tables. It helps to combine fields from tables using the common values in them. You can use them to extract data from tables that have either one-to-many or many-to-many relationships. There are six types of join – inner join, full join, left join, right join, self join, and Cartesian join.

  • Inner Join: It returns values of the rows in which there is a match in both database tables
  • Full Join: Returns rows if there is a match in either of the tables
  • Left Join: Returns all the rows from the table on the left even if no rows match in the right database table
  • Right Join: Returns all the rows from the table on the right even if no rows match in the left database table
  • Self Join: It allows you to join a table to itself and renames at least one of the tables in the SQL query
  • Cartesian Join: It returns the Cartesian product of the records from the tables that are joined

To learn more about Joins, read this SQL Tutorial.

In order to become proficient in SQL, you must sign up for one of the best SQL Training. In this course, you will also learn to deploy various SQL functions, query data using Transact-SQL, develop SQL databases, and clustering.

You must also watch this SQL video tutorial on YouTube:

Related questions

0 votes
1 answer
asked May 4, 2023 in SQL by neelimakv (37.3k points)
0 votes
1 answer
asked May 1, 2020 in SQL by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Apr 23, 2020 in SQL by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Apr 21, 2020 in SQL by Sudhir_1997 (55.6k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...