Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Flag

Hi,

I have the below table as source.

IDNameAvailable
1Aarthi0
1Aarthi0
1Aarthi50
1Aarthi50
2Nikhil50
2Nikhil0
2Nikhil50
3Yogesh0
3Yogesh0

From the above sample data  I want to generate the flag as below:

IDNameAvailableFlag
1Aarthi01
1Aarthi01
1Aarthi500
1Aarthi500
2Nikhil501
2Nikhil00
2Nikhil502
3Yogesh01
3Yogesh01

Please help me out to generate the above flag.

2 Replies
MK9885
Master II
Master II

Ok but what are those flags based on?

Why is it 1 or 0 or 2? What is the condition you want to use?

At some places 50 is having Flags 1,2 & 0 for same Name.

sunny_talwar

Can you share the logic as to how you are doing this?