KK_PCHLD_BP2

(SQL View)
Index Back

SELECT A.SETID1 , A.LEDGER_GROUP ,SP.SUBTYPE , ' ' , ' ' , ' ' , B.LEDGER_GROUP , ' ' , ' ' FROM PS_KK_BUDGET_TYPE A , PS_KK_BUDGET_TYPE B ,PS_KK_SUBTYPE SP ,PS_KK_SUBTYPE SC WHERE A.SETID1=B.SETID1 AND B.LEDGER_GROUP=A.PARENT_BUDGET AND SP.CALENDAR_ID=' ' AND SC.CALENDAR_ID=' ' AND A.EFFDT=( SELECT MAX(EFFDT) FROM PS_KK_BUDGET_TYPE WHERE LEDGER_GROUP=A.LEDGER_GROUP AND SETID1=A.SETID1 AND EFFDT<=%CurrentDateIn) AND B.EFFDT=( SELECT MAX(EFFDT) FROM PS_KK_BUDGET_TYPE WHERE LEDGER_GROUP=B.LEDGER_GROUP AND SETID1=B.SETID1 AND EFFDT<=%CurrentDateIn) AND A.EFF_STATUS='A' AND B.EFF_STATUS='A' AND SP.SETID1=B.SETID1 AND SP.LEDGER_GROUP=B.LEDGER_GROUP AND SP.EFFDT=B.EFFDT AND SC.SETID1=A.SETID1 AND SC.LEDGER_GROUP=A.LEDGER_GROUP AND SC.EFFDT=A.EFFDT AND SP.SUBTYPE=SC.PARENT_SUBTYPE

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID1 Character(5) VARCHAR2(5) NOT NULL SetID Value
2 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group
3 SUBTYPE Character(10) VARCHAR2(10) NOT NULL Ruleset
4 SETID Character(5) VARCHAR2(5) NOT NULL SetID
5 CALENDAR_ID Character(2) VARCHAR2(2) NOT NULL Calendar ID
6 BUDGET_PERIOD Character(8) VARCHAR2(8) NOT NULL Budget Period
7 PARENT_BUDGET Character(10) VARCHAR2(10) NOT NULL Parent Control Budget
8 CALENDAR_ID_2 Character(2) VARCHAR2(2) NOT NULL Calendar Id
9 BUDGET_PERIOD_2 Character(8) VARCHAR2(8) NOT NULL Budget Period