I was wondering performance wise what would be faster a join or a from and where query. I am trying merge and update query but performance is terrible?

  • can you give more information about your problem? Feb 3, 2012 at 12:20
  • Can you post your query?
    – Aaron
    Feb 3, 2012 at 14:13
  • 1
    Post your query plan
    – Gaius
    Feb 3, 2012 at 19:40
  • Because you say your "performance is terrible" and provide nothing, we can't usefully speculate why the performance is terrible and an answer telling you that the join isn't different is too localized to be useful to anyone else. It's not about theory or syntax, it's about your application and you haven't revealed it. Jan 16, 2018 at 18:24

1 Answer 1


If you are asking whether it is more efficient to use SQL 92 join syntax

SELECT empno, ename, dname
  FROM emp
       JOIN dept USING (deptno)

or to use the older join syntax

SELECT empno, ename, dname
  FROM emp  e,
       dept d
 WHERE e.deptno = d.deptno

the answer is that it doesn't matter. The optimizer is automatically going to do an internal transformation from the SQL 92 syntax to the older syntax anyway.

If you have performance problems, it is highly unlikely that they are related to your choice of join syntax (though when Oracle first added support for SQL 92 join syntax, there were bugs relating to its ability to transform the SQL into the older style).

  • 1
    Just want to add to your answer that Oracle (at least Oracle 10)still has some problems with JOIN syntax. I can create refresh fast on commit materialized view using the old syntax (join condition in where), but I can't do the same with normal join.
    – a1ex07
    Feb 3, 2012 at 16:22
  • 1
    @a1ex07 - still true in 11g (, anyway).
    – Alex Poole
    Feb 3, 2012 at 17:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.