@chennupriya wrote:
xx= NA630011 what is a similar function achieved by below code
LEFT(xx) as Var1,
RIGHT(LEFT(xx),1) as Var2,
RIGHT(LEFT(xx),3) as Var3,
RIGHT(LEFT(xx),3) as Var4,
What would you expect the values of Var1, Var2, Var3 and Var4 to be? I'm not going to guess where you got the example syntax from.
Note: if any of these are single values of 0 or 1 you better point out which 0 and which 1 from the original string contributed it as there would be different ways to get those.
... View more