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?

closed as unclear what you're asking by Evan Carroll, Erik Darling, LowlyDBA, RDFozz, McNets Jan 17 '18 at 8:23

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • can you give more information about your problem? – Atilla Ozgur Feb 3 '12 at 12:20
  • Can you post your query? – Aaron Feb 3 '12 at 14:13
  • 1
    Post your query plan – Gaius Feb 3 '12 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. – Evan Carroll Jan 16 '18 at 18:24

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 '12 at 16:22
  • 1
    @a1ex07 - still true in 11g (, anyway). – Alex Poole Feb 3 '12 at 17:53

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