IF condition in Derived Column
Hi All, I need to use IF statment in DErived COulmn. If Product_Type = 'PL' then the New column shld be populated with 'SD' else if it is null it shld be populated with 'LD'. Kindly help. REgards, James.
July 31st, 2012 1:25pm

Open Deriv col: and put this below exp there. (Product_Type == 'PL' ?"SD":ISNULL(Product_Type)?"LD") I did not tested this. But let me know how this goes.
Free Windows Admin Tool Kit Click here and download it now
July 31st, 2012 1:36pm

hello James, You must use the SSIS Expression equivalent boolean_test ? true_result : false_result So it would look like Product_Type = "PL" ? "SD" : ISNULL(Product_Type) ? "LD" : false_result then what? I do not know, insert yours Arthur My Blog
July 31st, 2012 1:37pm

Thanks Guys..It worked like a charm :-)
Free Windows Admin Tool Kit Click here and download it now
July 31st, 2012 1:40pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics