TO_CHAR(( TO_DATE(calendar_key,'YYYYMMDD' )+ 1),'IW') week
Can somebody tell me what's happening in this query? I know what the to_date operation does, I am confused about the '+1' over there, does it add 1 year to the date??
And what about the 'IW'? Is it alias name? and then why 'week'?
Plese help me. Thanks in advance