DBA Data[Home] [Help]

VIEW: APPS.BOM_CALENDAR_MONTHS_VIEW

Source

View Text - Preformatted

SELECT calendar_code, exception_set_id, to_number(to_char(calendar_date, 'YYYY')), to_number(to_char(calendar_date, 'MM')), rtrim(to_char(calendar_date, 'Month'),' '), min(calendar_date) FROM BOM_CALENDAR_DATES group by calendar_code, exception_set_id, to_char(calendar_date, 'YYYY'), to_char(calendar_date, 'MM'), to_char(calendar_date, 'Month')
View Text - HTML Formatted

SELECT CALENDAR_CODE
, EXCEPTION_SET_ID
, TO_NUMBER(TO_CHAR(CALENDAR_DATE
, 'YYYY'))
, TO_NUMBER(TO_CHAR(CALENDAR_DATE
, 'MM'))
, RTRIM(TO_CHAR(CALENDAR_DATE
, 'MONTH')
, ' ')
, MIN(CALENDAR_DATE)
FROM BOM_CALENDAR_DATES GROUP BY CALENDAR_CODE
, EXCEPTION_SET_ID
, TO_CHAR(CALENDAR_DATE
, 'YYYY')
, TO_CHAR(CALENDAR_DATE
, 'MM')
, TO_CHAR(CALENDAR_DATE
, 'MONTH')