Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

What is the difference between JOIN and INNER JOIN in SQL ?

Both these joins will give me the same results:

SELECT FROM Sampletable JOIN otherTable ON table.ID = otherTable.FK

vs

SELECT
FROM Sampletable INNER JOIN otherTable ON table.ID = otherTable.FK

Is there any difference between the statements in performance or otherwise?

Does it differ in SQL implementations?
by

2 Answers

Shahlar1vxp
The basic difference between Join* and *Inner join* is that Microsoft Access does not allow just *join* but it requires *inner join*.
Inner specifies all matching pairs of rows get returned. When join type is not specified, this is the default.
However, both are equivalent functionally but *inner join
is a bit clearer to read more specifically if the query has other join types included in it like LEFT, RIGHT or CROSS.
sandhya6gczb
There is no difference between inner join and join. The inner join is used as the default join. So we can exclude the inner word and just use join. But for other join operation, we need to specify it like left outer join, right inner join, etc

Login / Signup to Answer the Question.