Skip to content

Commit

Permalink
Automated database schema update from KFS5CGBDBA - 20150310-2205
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsci committed Mar 11, 2015
1 parent aa28a95 commit 1e81b50
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions work/db/kfs-db/development/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16715,17 +16715,17 @@
<unique-column name="OBJ_ID"/>
</unique>
</table>
<view name="CA_OBJECT_CODE_V" viewdefinition="( SELECT C.UNIV_FISCAL_YR, FIN_COA_CD, FIN_OBJECT_CD, FIN_OBJ_CD_NM, FIN_OBJ_CD_SHRT_NM, FIN_OBJ_LEVEL_CD, RPTS_TO_FIN_COA_CD, RPTS_TO_FIN_OBJ_CD , FIN_OBJ_TYP_CD, FIN_OBJ_SUB_TYP_CD, HIST_FIN_OBJECT_CD, FIN_OBJ_ACTIVE_CD, FOBJ_BDGT_AGGR_CD, FOBJ_MNXFR_ELIM_CD, FIN_FED_FUNDED_CD, NXT_YR_FIN_OBJ_CD, RSCH_BDGT_CTGRY_CD, RSCH_OBJ_CD_DESC, RSCH_ON_CMP_IND FROM CA_OBJECT_CODE_T C, SH_UNIV_DATE_T S WHERE C.UNIV_FISCAL_YR = S.UNIV_FISCAL_YR AND UNIV_DT = TRUNC(SYSDATE) ) &#xa;"/>
<view name="CA_SUB_OBJECT_CD_V" viewdefinition="( SELECT C.UNIV_FISCAL_YR, FIN_COA_CD, ACCOUNT_NBR, FIN_OBJECT_CD, FIN_SUB_OBJ_CD, FIN_SUB_OBJ_CD_NM, FIN_SUBOBJ_SHRT_NM, FIN_SUBOBJ_ACTV_CD FROM CA_SUB_OBJECT_CD_T C, SH_UNIV_DATE_T S WHERE C.UNIV_FISCAL_YR = S.UNIV_FISCAL_YR AND UNIV_DT = TRUNC(SYSDATE) ) &#xa;"/>
<view name="CA_OBJECT_CODE_V" viewdefinition="( SELECT C.UNIV_FISCAL_YR, FIN_COA_CD, FIN_OBJECT_CD, FIN_OBJ_CD_NM, FIN_OBJ_CD_SHRT_NM, FIN_OBJ_LEVEL_CD, RPTS_TO_FIN_COA_CD, RPTS_TO_FIN_OBJ_CD , FIN_OBJ_TYP_CD, FIN_OBJ_SUB_TYP_CD, HIST_FIN_OBJECT_CD, FIN_OBJ_ACTIVE_CD, FOBJ_BDGT_AGGR_CD, FOBJ_MNXFR_ELIM_CD, FIN_FED_FUNDED_CD, NXT_YR_FIN_OBJ_CD, RSCH_BDGT_CTGRY_CD, RSCH_OBJ_CD_DESC, RSCH_ON_CMP_IND FROM CA_OBJECT_CODE_T C, SH_UNIV_DATE_T S WHERE C.UNIV_FISCAL_YR = S.UNIV_FISCAL_YR AND UNIV_DT = TRUNC(SYSDATE) )"/>
<view name="CA_SUB_OBJECT_CD_V" viewdefinition="( SELECT C.UNIV_FISCAL_YR, FIN_COA_CD, ACCOUNT_NBR, FIN_OBJECT_CD, FIN_SUB_OBJ_CD, FIN_SUB_OBJ_CD_NM, FIN_SUBOBJ_SHRT_NM, FIN_SUBOBJ_ACTV_CD FROM CA_SUB_OBJECT_CD_T C, SH_UNIV_DATE_T S WHERE C.UNIV_FISCAL_YR = S.UNIV_FISCAL_YR AND UNIV_DT = TRUNC(SYSDATE) )"/>
<view name="END_KEMID_CRNT_BAL_DET_V" viewdefinition="SELECT B.KEMID , B.HLDG_IP_IND , CASE WHEN R.SEC_RPT_GRP != 'CSHEQ' THEN SUM(B.HLDG_MVAL) ELSE CASE WHEN B.HLDG_IP_IND = 'I' THEN A.CRNT_INC_CSH + SUM(B.HLDG_MVAL) ELSE A.CRNT_PRIN_CSH + SUM(B.HLDG_MVAL) END END AS VAL_AT_MARKET , R.SEC_RPT_GRP AS SEC_RPT_GRP , SUM(B.HLDG_ANNL_INC_EST) AS ANN_INC_EST , SUM(B.HLDG_FY_REM_EST_INC) AS FY_REM_EST_INC , SUM(B.HLDG_NEXT_FY_EST_INC) AS NEXT_FY_EST_INC FROM END_CRNT_TAX_LOT_BAL_T B , END_SEC_T S , END_CLS_CD_T CL , END_SEC_RPT_GRP_T R , END_CRNT_CSH_T A WHERE S.SEC_ID = B.SEC_ID AND S.SEC_CLS_CD = CL.SEC_CLS_CD AND CL.SEC_RPT_GRP = R.SEC_RPT_GRP AND A.KEMID = B.KEMID GROUP BY B.KEMID , R.SEC_RPT_GRP , B.HLDG_IP_IND , A.CRNT_INC_CSH , A.CRNT_PRIN_CSH &#xa;"/>
<view name="END_KEMID_CRNT_BAL_V" viewdefinition="SELECT A.KEMID , A.CRNT_INC_CSH + SUM( CASE WHEN E.HLDG_IP_IND = 'I' THEN E.HLDG_MVAL ELSE 0.00 END ) AS INC_AT_MARKET , A.CRNT_PRIN_CSH + SUM( CASE WHEN E.HLDG_IP_IND = 'P' THEN E.HLDG_MVAL ELSE 0.00 END ) AS PRIN_AT_MARKET , A.CRNT_PRIN_CSH + A.CRNT_INC_CSH + SUM( E.HLDG_MVAL ) AS TOTAL_MARKET_VAL , SUM(HLDG_ANNL_INC_EST) AS ANN_EST_INC , SUM(HLDG_FY_REM_EST_INC) AS FY_REM_EST_INC , SUM(HLDG_NEXT_FY_EST_INC) AS NEXT_FY_EST_INC FROM END_CRNT_CSH_T A , END_CRNT_TAX_LOT_BAL_T E WHERE A.KEMID = E.KEMID GROUP BY A.KEMID, A.CRNT_PRIN_CSH, A.CRNT_INC_CSH &#xa;"/>
<view name="END_KEMID_CRNT_REP_GRP_V" viewdefinition="SELECT C.KEMID, CL.SEC_RPT_GRP, C.SEC_ID, C.REGIS_CD, C.HLDG_IP_IND, SUM(C.HLDG_UNITS) AS UNITS, SUM(HLDG_COST) AS CARRY_VAL, SUM(HLDG_MVAL) AS MARKET_VAL, SUM(HLDG_NEXT_FY_EST_INC) AS NEXT_FY_EST_INC, SUM(HLDG_FY_REM_EST_INC) AS FY_REM_EST_INC, SUM(HLDG_ANNL_INC_EST) AS ANNL_INC_EST FROM END_CRNT_TAX_LOT_BAL_T C, END_SEC_T S, END_CLS_CD_T CL WHERE C.SEC_ID = S.SEC_ID AND S.SEC_CLS_CD = CL.SEC_CLS_CD GROUP BY C.KEMID, CL.SEC_RPT_GRP, C.HLDG_IP_IND, C.SEC_ID, C.REGIS_CD &#xa;"/>
<view name="END_KEMID_HIST_BAL_DET_V" viewdefinition="SELECT B.KEMID , B.HLDG_IP_IND , CASE WHEN B.HLDG_IP_IND = 'I' THEN A.HIST_INC_CSH + SUM(B.HLDG_MVAL) ELSE A.HIST_PRIN_CSH + SUM(B.HLDG_MVAL) END AS VAL_AT_MARKET , R.SEC_RPT_GRP AS SEC_RPT_GRP , SUM(B.HLDG_ANNL_INC_EST) AS ANN_INC_EST , SUM(B.HLDG_FY_REM_EST_INC) AS FY_REM_EST_INC , SUM(B.HLDG_NEXT_FY_EST_INC) AS NEXT_FY_EST_INC , B.ME_DT_ID FROM END_HIST_CSH_T A , END_HLDG_HIST_T B , END_SEC_T S , END_CLS_CD_T CL , END_SEC_RPT_GRP_T R WHERE S.SEC_ID = B.SEC_ID AND S.SEC_CLS_CD = CL.SEC_CLS_CD AND CL.SEC_RPT_GRP = R.SEC_RPT_GRP AND A.KEMID = B.KEMID AND A.ME_DT_ID = B.ME_DT_ID GROUP BY B.KEMID , R.SEC_RPT_GRP , B.HLDG_IP_IND , B.ME_DT_ID , A.HIST_INC_CSH , A.HIST_PRIN_CSH &#xa;"/>
<view name="END_KEMID_HIST_BAL_V" viewdefinition="SELECT A.KEMID, A.ME_DT_ID , A.HIST_INC_CSH + SUM( CASE WHEN E.HLDG_IP_IND = 'I' THEN E.HLDG_MVAL ELSE 0.00 END ) AS INC_AT_MARKET , A.HIST_PRIN_CSH + SUM( CASE WHEN E.HLDG_IP_IND = 'P' THEN E.HLDG_MVAL ELSE 0.00 END ) AS PRIN_AT_MARKET , A.HIST_PRIN_CSH + A.HIST_INC_CSH + SUM( E.HLDG_MVAL ) AS TOTAL_MARKET_VAL , SUM(HLDG_ANNL_INC_EST) AS ANN_EST_INC , SUM(HLDG_FY_REM_EST_INC) AS FY_REM_EST_INC , SUM(HLDG_NEXT_FY_EST_INC) AS NEXT_FY_EST_INC FROM END_HIST_CSH_T A , END_HLDG_HIST_T E WHERE A.KEMID = E.KEMID AND A.ME_DT_ID = E.ME_DT_ID GROUP BY A.KEMID, A.ME_DT_ID, A.HIST_PRIN_CSH, A.HIST_INC_CSH &#xa;"/>
<view name="END_KEMID_HIST_REP_GRP_V" viewdefinition="SELECT C.KEMID, CL.SEC_RPT_GRP, C.SEC_ID, C.REGIS_CD, C.HLDG_IP_IND, SUM(C.HLDG_UNITS) AS UNITS, SUM(HLDG_COST) AS CARRY_VAL, SUM(HLDG_MVAL) AS MARKET_VAL, SUM(HLDG_NEXT_FY_EST_INC) AS NEXT_FY_EST_INC, SUM(HLDG_FY_REM_EST_INC) AS FY_REM_EST_INC, SUM(HLDG_ANNL_INC_EST) AS ANNL_INC_EST, C.ME_DT_ID FROM END_HLDG_HIST_T C, END_SEC_T S, END_CLS_CD_T CL WHERE C.SEC_ID = S.SEC_ID AND S.SEC_CLS_CD = CL.SEC_CLS_CD GROUP BY C.KEMID, CL.SEC_RPT_GRP, C.HLDG_IP_IND, C.SEC_ID, C.REGIS_CD, C.ME_DT_ID &#xa;"/>
<view name="PUR_PO_ITM_TOT_AMT_V" viewdefinition="(SELECT FDOC_NBR, SUM( CASE WHEN ITM_ACTV_IND = 'Y' AND ITM_ORD_QTY IS NULL THEN ITM_UNIT_PRC WHEN ITM_ACTV_IND = 'Y' AND ITM_ORD_QTY IS NOT NULL THEN ITM_ORD_QTY * ITM_UNIT_PRC WHEN ITM_ACTV_IND IS NULL AND ITM_ORD_QTY IS NULL THEN ITM_UNIT_PRC WHEN ITM_ACTV_IND IS NULL AND ITM_ORD_QTY IS NOT NULL THEN ITM_ORD_QTY * ITM_UNIT_PRC WHEN ITM_ACTV_IND ='N' THEN 0 ELSE 0 END) AS TOTAL_AMOUNT FROM PUR_PO_ITM_T GROUP BY FDOC_NBR) &#xa;"/>
<view name="PUR_PO_ITM_TOT_ENC_V" viewdefinition="(SELECT A.FDOC_NBR AS FDOC_NBR, SUM(A.ITM_OSTND_ENC_AMT) AS TOTAL_ENCUMBRANCE FROM PUR_PO_ITM_T A GROUP BY A.FDOC_NBR) &#xa;"/>
<view name="PUR_PO_V" viewdefinition="SELECT P.AP_PUR_DOC_LNK_ID, P.PO_ID, P.PO_CUR_IND, P.FDOC_NBR, P.OBJ_ID, P.RECUR_PMT_TYP_CD, P.PO_VNDR_CHC_CD, P.PO_END_DT, E.TOTAL_ENCUMBRANCE, SUMMATION.TOTAL_AMOUNT FROM PUR_PO_T P, PUR_PO_ITM_TOT_ENC_V E, PUR_PO_ITM_TOT_AMT_V SUMMATION WHERE P.FDOC_NBR = E.FDOC_NBR AND P.FDOC_NBR = SUMMATION.FDOC_NBR&#xa;"/>
<view name="PUR_PO_ITM_TOT_AMT_V" viewdefinition="(SELECT FDOC_NBR, SUM( CASE WHEN ITM_ACTV_IND = 'Y' AND ITM_ORD_QTY IS NULL THEN ITM_UNIT_PRC WHEN ITM_ACTV_IND = 'Y' AND ITM_ORD_QTY IS NOT NULL THEN ITM_ORD_QTY * ITM_UNIT_PRC WHEN ITM_ACTV_IND IS NULL AND ITM_ORD_QTY IS NULL THEN ITM_UNIT_PRC WHEN ITM_ACTV_IND IS NULL AND ITM_ORD_QTY IS NOT NULL THEN ITM_ORD_QTY * ITM_UNIT_PRC WHEN ITM_ACTV_IND ='N' THEN 0 ELSE 0 END) AS TOTAL_AMOUNT FROM PUR_PO_ITM_T GROUP BY FDOC_NBR)"/>
<view name="PUR_PO_ITM_TOT_ENC_V" viewdefinition="(SELECT A.FDOC_NBR AS FDOC_NBR, SUM(A.ITM_OSTND_ENC_AMT) AS TOTAL_ENCUMBRANCE FROM PUR_PO_ITM_T A GROUP BY A.FDOC_NBR)"/>
<view name="PUR_PO_V" viewdefinition="SELECT P.AP_PUR_DOC_LNK_ID, P.PO_ID, P.PO_CUR_IND, P.FDOC_NBR, P.OBJ_ID, P.PO_STAT_CD, P.RECUR_PMT_TYP_CD, P.PO_VNDR_CHC_CD, P.PO_END_DT, E.TOTAL_ENCUMBRANCE, SUMMATION.TOTAL_AMOUNT FROM PUR_PO_T P, PUR_PO_ITM_TOT_ENC_V E, PUR_PO_ITM_TOT_AMT_V SUMMATION WHERE P.FDOC_NBR = E.FDOC_NBR AND P.FDOC_NBR = SUMMATION.FDOC_NBR"/>
<sequence name="A21_LBR_BLD_NBR_SEQ" nextval="2000"/>
<sequence name="AGENCY_ADDR_ID_SEQ" nextval="41"/>
<sequence name="AP_CRDT_MEMO_ACCT_CHG_SEQ" nextval="2000"/>
Expand Down

0 comments on commit 1e81b50

Please sign in to comment.