SQL Performance (MOSC)

MOSC Banner

Simple query, BETWEEN Operator, and a real mess!

edited Jun 12, 2014 12:00PM in SQL Performance (MOSC) 4 commentsAnswered

Hi All,

Database: 11g R2, version 11.2.0.3.0, STANDARD edition

OS: Red Hat Enterprise Linux Server release 5.3 (Tikanga)

I have a very innocent looking query as follows:

SELECT * FROM t2 JOIN t1 ON t1.num BETWEEN t2.numLow AND t2.numHigh;

which almost never returns!

Note that BETWEEN operator works on the 2 different columns for the low and high range.

Range values are non-overlapping in table t2.

Any suggesstions?

Thanks

DP.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center