WM_DATE_DIM(SQL View) |
Index Back |
---|---|
Date Dimension |
SELECT A.TRANS_DATE , CASE WHEN B.ACCOUNTING_PERIOD < 10 THEN (%NumToChar(B.FISCAL_YEAR) %Concat '-0' %Concat %NumToChar(B.ACCOUNTING_PERIOD) %Concat '-' %Concat B.PERIOD_ABBRV) ELSE (%NumToChar(B.FISCAL_YEAR) %Concat '-' %Concat %NumToChar(B.ACCOUNTING_PERIOD)%Concat '-' %Concat B.PERIOD_ABBRV) END , B.FISCAL_YEAR , B.ACCOUNTING_PERIOD , B.PERIOD_NAME , B.PERIOD_ABBRV , B.BEGIN_DT , B.END_DT , CASE WHEN D.ACCOUNTING_PERIOD < 10 THEN (%NumToChar(B.FISCAL_YEAR) %Concat '-0' %Concat %NumToChar(D.ACCOUNTING_PERIOD) %Concat '-' %Concat D.PERIOD_ABBRV) ELSE (%NumToChar(B.FISCAL_YEAR) %Concat '-' %Concat %NumToChar(D.ACCOUNTING_PERIOD) %Concat '-' %Concat D.PERIOD_ABBRV) END , D.ACCOUNTING_PERIOD , A.CALENDAR_MONTH , A.CALENDAR_QUARTER , A.CALENDAR_YEAR , A.PROCESS_INSTANCE FROM PS_WM_DATE A , PS_CAL_DETP_TBL B , PS_WM_REPORT_SETUP C , PS_CAL_SUMP_TBL D , PS_CAL_DEFN_TBL G WHERE B.SETID = C.SETID AND B.CALENDAR_ID = C.WM_MONTH_CALENDAR AND A.TRANS_DATE BETWEEN B.BEGIN_DT AND B.END_DT AND D.SETID = C.SETID AND D.CALENDAR_ID = C.WM_QTR_CALENDAR AND D.FISCAL_YEAR = B.FISCAL_YEAR AND B.ACCOUNTING_PERIOD BETWEEN D.DETL_PERIOD_FROM AND D.DETL_PERIOD_TO AND G.SETID = D.SETID AND G.CALENDAR_ID = D.CALENDAR_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | TRANS_DATE | Date(10) | DATE | Transaction Date |
2 | WM_FISCAL_PERIOD | Character(20) | VARCHAR2(20) NOT NULL | Period |
3 | FISCAL_YEAR | Number(4,0) | SMALLINT NOT NULL | Fiscal Year |
4 | ACCOUNTING_PERIOD | Number(3,0) | SMALLINT NOT NULL | Identifies a time period to which you post transactions. Typically, an accounting period represents a month, but it can also represent a week, a day, or any user-defined interval. An accounting period has a beginning date and an ending date, and is defined in the calendar table. |
5 | PERIOD_NAME | Character(30) | VARCHAR2(30) NOT NULL | Period Name |
6 | PERIOD_ABBRV | Character(3) | VARCHAR2(3) NOT NULL | Abbreviation |
7 | BEGIN_DT | Date(10) | DATE | Begin Date |
8 | END_DT | Date(10) | DATE | End Date |
9 | WM_FISCAL_QTR | Character(20) | VARCHAR2(20) NOT NULL | Fiscal Quarter |
10 | WM_QTR_ACCTG_PER | Number(3,0) | SMALLINT NOT NULL | Quarterly Accounting Period |
11 | CALENDAR_MONTH | Character(20) | VARCHAR2(20) NOT NULL | Calendar Month |
12 | CALENDAR_QUARTER | Character(20) | VARCHAR2(20) NOT NULL | Calendar Quarter |
13 | CALENDAR_YEAR | Number(4,0) | SMALLINT NOT NULL | Calendar Year |
14 | PROCESS_INSTANCE | Number(10,0) | DECIMAL(10) NOT NULL | Process Instance |