0

I know, if you want the inner join of two tables, you can write SQL in the following syntax.

select tableA.columnA 
from tableA 
   inner join tableB on tableA.columnB=tableB.columnB

Alternatively, you can write the following.

select tableA.columnA 
from tableA, 
     tableB 
where tableA.columnB=tableB.columnB

so, which is better in terms of performance?

a_horse_with_no_name
  • 497,550
  • 91
  • 775
  • 843
justyy
  • 5,613
  • 3
  • 35
  • 69

2 Answers2

3

There is no difference in terms of performance. The where clause is in fact the same as INNER JOIN when it comes to relational algabra.

Read here for a brief explaination

SpaceApple
  • 1,248
  • 1
  • 22
  • 45
0

Make sure you understand how inner joins work though, inner join will return more records than you might expect if one of your tables contain duplicate records. So basically, for each record in table A, it will return all the matching records in table B, and if the next record in table A matches the same records in table B, they will appear again. Read more here.

2D3D4D
  • 121
  • 11