You are on page 1of 9

SIT_STMT_DTL_01_Validation of To perform Primary Key Primary Key and Foreign Key in validations on Statement Detail Statement Detail Table

Table

Step 1

SIT_PRD_DVC_FIN_ROLL_FWD_1 Count validation 2 to validate count of the table

Step 1

SIT_PRD_DVC_FIN_ROLL_FWD_1 Not NULL Check 3_to Validate Not null columns

Step1 SIT_PRD_DVC_FIN_ROLL_FWD_0 To perform Primary Key 1_Validation of Primary Key and validations on Period Device Foreign Key in Financing Roll Forward PRD_DVC_FIN_ROLL_FWD Table

Step 1

Step2

Primary Key unique check : select count(*) from STMT_DTL group by STMT_DTL_ID having Queries should count(*)>1 return zero rows Primary Key Not Null Check : select * from STMT_DTL where STMT_DTL_ID is not select count(*) from (Select Queries should distinct return zero rows SALE_DT, CUST_ID, to_char(add_months(SYSD ATE, -1),'mm') PRD_MTH, EXTRACT(YEAR FROM add_months(SYSDATE, -1)) PRD_YR , PRD_YR,CD_DESC, (select max(ISTL_SEQ) from DVC_FIN_BILL_ISTL where DVC_FIN_SALE.CTRC_ID =DVC_FIN_BILL_ISTL.CTRL_I D and to_char(DVC_FIN_BILL_ISTL .ISTL_DT,'mm')< DVC_FIN_SALE.PRD_MTH) SALE_TO_DT_ISTL_BILL_CN T, tgt.PRD_END_ST_AR_DF_B AL_AMT, tgt.PRD_END_LT_AR_DF_B AL_AMT , DF_ISTL_BILL_AMT , F.PRE_PMT_ST_AR_DF_BAL _AMT + F.PRE_PMT_LT_AR_DF_BAL

EDW/Ope Functional rations

Manual

EDW/Ope rations

Functional

Manual

select * from Queries should PRD_DVC_FIN_ROLL_FWD return zero rows where SALE_DT is null or CUST_ID is null or PRD_MTH is null or PRD_YR is null or PRD_END_CUST_STS_LBL is null or SALE_TO_DT_ISTL_BILL_CN T is null or PRR_PRD_ST_AR_DF_BAL_ AMT is null or PRR_PRD_LT_AR_DF_BAL_ AMT is null or PRD_END_ST_AR_DF_BAL_ AMT is null or PRD_END_LT_AR_DF_BAL_ AMT is null or INSR_RUN_ID is null or SRC_INSR_DT is null or SYS_INSR_DT is null or CTRC_ID is null Unique Check : Queries should Select count(*) from return zero rows PRD_DVC_FIN_ROLL_FWD group by SALE_DT, CUST_ID ,PRD_MTH, PRD_YR Having count(*) >1 NOT NULL : Select * from PRD_DVC_FIN_ROLL_FWD where SALE_DT is null or CUST_ID is null OR PRD_MTH is null OR PRD_YR is null

EDW/Ope rations

Functional

Manual

EDW/Ope rations

Functional

Manual

Select SALE_DT, CUST_ID ,PRD_MTH, PRD_YR from PRD_DVC_FIN_ROLL_FWD minus Select SALE_DT, CUST_ID,to_char(add_mont hs(SYSDATE, -1),'mm') PRD_MTH, EXTRACT(YEAR FROM add_months(SYSDATE, -1)) PRD_YR from DVC_FIN_SALE where CTRC_ID not in (select CTRC_ID from PRD_DVC_FIN_ROLL_FWD where PRD_END_ST_AR_DF_BAL_ AMT=0 OR PRD_END_LT_AR_DF_BAL_ AMT =0) Union Select SALE_DT, CUST_ID, to_char(add_months(SYSD ATE, -1),'mm') PRD_MTH, EXTRACT(YEAR FROM add_months(SYSDATE, -1)) PRD_YR from

Offshore

E2E

Shared Data hojha001 Reporting

Not Automate d

Offshore

E2E

Shared Data Reporting

hojha001

Not Automate d

Offshore

E2E

Shared Data Reporting

hojha001

Not Automate d

Offshore

E2E

Shared Data Reporting

Not Automate d

You might also like