Joined: 13 Feb 2004 Posts: 360 Location: Bangalore
Do an EXPLAIN on your query and see the o/p in PLAN_TABLE and DSN_STATEMNT_TABLE ...
BETWEEN is usually more efficient than <= predicate and the >= predicate
Except when comparing a host variable to 2 columns
I guess this concept was bought in DB2 versions after version 6 ... bfore that > and < used to perform better ... i read this in some blog by craigmullins ...