Database Tuning (MOSC)

MOSC Banner

Index on Date Column

edited Jan 27, 2011 1:31AM in Database Tuning (MOSC) 6 commentsAnswered
Hi There,
Please let us know the way to efficiently create and use the index on date columns, our reports are using date columns in Selection crieteria (Data selected on date range which is described below).
e.g. our where_clause includes following
1. Trunc(Effective_Date) between To_date(:p_f_date) and To_date(:p_t_date)

2. to_number(to_char(trunc(last_update_date),'DDMMYYYY')) between To_number(To_Char(:p_f_date,'DDMMYYYY')) and To_number(To_Char(:p_t_date,'DDMMYYYY'))

3. to_number(to_char(trunc(last_update_date),'YYYYMMDD')) between To_number(To_Char(:p_f_date,'YYYYMMDD')) and To_number(To_Char(:p_t_date,'YYYYMMDD'))

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