Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question.

Asked: February 05, 2018 - 12:10 pm UTC

Last updated: February 07, 2018 - 5:41 am UTC

Version: 11.0

Viewed 1000+ times

You Asked

Help me bro..plaes...i didnt understand this requirement an exactly....

This code is located in the Account_Servicing_Fact_Load SSIS package.

The final container contains the code components needed to run both aggregation data.

You will have to incorporate the code into your process.

Tas 4:-Data Defect:-Missing data on some closed loans-Account servicing fact

.Run the following query:

Select * from
             Account_Serving_Fact|_Test_AMC 
         where servicing_platform_cpde='Xerox'
         and sub_portfolio='error'
         and state is null
         and prinbal is null order by csc_id, filedt


.Identify the accounts that show up and determine why these values are being set to Null via the
FCA_ACCOUNT_servicing_fact_test_amc_load stored procedure.

.You will need to debug through the code to find the accounts are failing out of the process.

When i ran the above query it is displaying the NULLS from all columns and If i put the same code within where clause with a Few columns as IS NOT NULL, It shows the data ,

Select columnames from
             Account_Serving_Fact|_Test_AMC 
         where servicing_platform_cpde='Xerox'
         and sub_portfolio='error'
         and state is not null
         and prinbal is not null group by columns.


But my manager want me to find out why all these field have null values.Am struggling with this what he is asking an exact.

If ran the query ---->Select * from
             Account_Serving_Fact|_Test_AMC 
         where servicing_platform_cpde='Xerox'
         and sub_portfolio='error'
         and state is not null
         and prinbal is not null null order by csc_id, filedt


It shows executing, finally it is failed after the long ran.

Please help me here bro, I thought he needed the data which is completely not come by NULLS.There are so many columns are there.

Even i tried with this query to filter out the NULLS data....

SELECT *  FROM tablename WHERE col1+col2+col3+col4 IS NULL;----To return for only Null values
Union 
SELECT * FROM tab1ename WHERE col1+col2+col3+col4 IS NOT NULL;--To return only the data an except NULL'S.


Note:-I hope you can help on this bro.

Thank You very much and your kind on helping to the global for every member.

and Connor said...

Tip #1: Don't call us "bro" :-)

Tip #2:

From what I read of the question, you are not being asked to see what columns are null, but to find out *why* they are null. To do that, you need to see what process is *setting* the column values.

It looks like you've been told the location for that process is:

"FCA_ACCOUNT_servicing_fact_test_amc_load stored procedure"

So you need to edit that procedure - add some debugging code. Look for inserts/updates to the tables in question, and output (to table/file/screen/etc) the before and after values. Use that debugging information to determine where the logic error is, and work from there.

Is this answer out of date? If it is, please let us know via a Comment

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library