QuestionQ84Verified/Joining TablesCopy linkReport a problemAsk AstroTutorSave questionWhich statement is true regarding non-equijoin statement performance?AThe BETWEEN condition used with a non-equijoin always performs better than when using the >= and <= conditions.BThe BETWEEN condition used with a non-equijoin sometimes performs better than using the >= and <= conditions.CThe Oracle join syntax performs better than the SQL:1999 compliant ANSI join syntax.DThe Oracle join syntax performs less well than the SQL:1999 compliant ANSI join syntax.EThe join syntax used makes no difference to performance.Show AnswerAnswerExplanationBETWEEN is an inclusive range predicate equivalent to using >= and <=, so it has no inherent performance advantage. For semantically equivalent joins, Oracle's optimizer chooses the execution plan based on factors such as join conditions, indexes, and statistics rather than whether proprietary Oracle or ANSI SQL:1999 join notation is used.Learn moreOracle Database SQL Language Reference: BETWEEN ConditionOracle Database SQL Tuning Guide: JoinsShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion