I have a table that I need to select the correct location numbers from but I can't seem to select the right numbers that I need.
The location number is always the last number after all of the zeros to the right of it.
For example, if in my table it reads "0000000004" then the location number I need to select is 4.
I tried just using a replace statement to reaplce any zeros with a blank but then I run into problems when the location in the table reads "000000000606" because I need to select 606 as the location.
I also tried just selecting the last three numbers but in the first example that would give me a location of 004 and I only need it to be 4.
Is there a way to select all of the numbers to the right of the leading zeros?
Thanks in advance!
The location number is always the last number after all of the zeros to the right of it.
For example, if in my table it reads "0000000004" then the location number I need to select is 4.
I tried just using a replace statement to reaplce any zeros with a blank but then I run into problems when the location in the table reads "000000000606" because I need to select 606 as the location.
I also tried just selecting the last three numbers but in the first example that would give me a location of 004 and I only need it to be 4.
Is there a way to select all of the numbers to the right of the leading zeros?
Thanks in advance!