Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
HI Experts,
I have a data like below
if you observe in the above, Description have different values. Based on a particular value(Failed) all the values of description should be Failed for ABC01 value else it should be Success.
Below is the expected for reference
I want to derive in load script. Please share your comments.
Thanks in advance.
Thanks for the reply. But this is not working as expected.
Can help to provide another type of solution/work around please.
Vivek, you would need to use Group by or Order by in the load and then use the Peek() function I believe to check for that string and if you hit it, then 'map' the other status values all to Failed at that point, but I am afraid I cannot code this for you, only point you in the right direction. Someone else may still chime in though, as my comment will kick things back up in the list again, so maybe someone else will be able to share some code, but you could also search prior posts, as I am pretty sure you will find some examples out there that will help you get things right on this one, as this is fairly comment scenario. Sorry I do not have better for you.
Regards,
Brett
In load script:
Data:
load *, if(Name='ABC 01','Failed','Success')as Status
resident <YourTableName>;
drop table <YourTableName>;