Greetings,
I currently have a table with the following columns:
Select account (varchar (30)) ,LP_Date_Next date ,PP_Date_Next date ,IP_Date_Next date ,PIP_Date_Next date Bullet (varchar (3)) from table
I'm trying to create a derived column which evaluates the Date_Next columns.
If LP_Date_Next is not null and PP_Date_Next, IP_Date_Next, and PIP are null then it should read "Regular Payment."
If PP_Date is not and all other *Date_Next are null, then it should be "Principal Only."
I started to write the expression in SSIS on a derived column, but it's beginning to look quite convoluted since evaluating only if the field is Null instead of evaluating if the field is not null, but I don't know how to proceed with it.
This is what I have so far:
(DT_STR,50,1252)(ISNULL(PP_Date_Next) && ISNULL(IP_Date_Next) && ISNULL(PIP_Date_Next) ? (DT_WSTR,50)"Regular Pay" : ISNULL(LP_Date_Next) && ISNULL(IP_Date_Next) && ISNULL(PIP_Date_Next) ? (DT_WSTR,50)"Principal Only" : (DT_WSTR,50)"nope")
I've only gotten to write the expression to evaluate if the account is Regular Pay or Principal Only. I also need to evaluate when an account IS NOT NULL for example on PP_Date_Next and IP_Date_Next.
I'd really appreciate if someone can guide me to identify if it's possible to use NOT Null as opposed to evaluating with ISNull.
Thank you in advance,
Jeannette