SQL Inner join is used to combine records from two or more tables in a database. The inner join is used to select all rows from tables for the match between the columns in tables. SQL INNER JOIN is based on the concept of EQUI JOINS. EQUI JOINS are those who use a comparison operator (=) for combining records from two or more tables. When the condition is satisfied, column values for each matched pair of rows of two tables are combined into a result row. You can check out SQL LEFT JOIN tutorial on this blog as well.
The shaded part above Shows the common records between both the tables.
The inner join is one of the widely used SQL joins in SQL Database. SQL inner join clause allows us to query the data from two or more related tables. SQL INNER JOIN keyword selects records that have matching values in both tables.
The INNER JOIN keyword selects all the rows from both tables as long as there is a match between the columns. If there are records in the “tableA” table that do not have matches in “tableB,” these rows will not be shown!
#sql #sql inner join #equi joins