General Ledger - EBS (MOSC)

MOSC Banner

How to compare the gl_periods table Period_name column with dates

edited Jan 27, 2015 10:02AM in General Ledger - EBS (MOSC) 7 commentsAnswered

Hello,

How to compare the Period_name column in gl_periods table with dates, When we are comparing we getting the "ORA-01843: not a valid month" error.

Query :

select

upper(period_name)

,to_date(period_name,'MON-RR')

,gp.*

from gl_periods gp

where 1=1

and period_name not like 'Adj%'

and to_date(period_name,'MON-RR') = to_date('01-JAN-1996')

;

ERROR :

ORA-01843: not a valid month

01843. 00000 -  "not a valid month"

*Cause:  

*Action:

Thanks,

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