April 17, 2008 at 9:42 am
Hi
I need to select last two characters of a field like the field has codes
Ex:
abcDE
cccDE
bbbDE
and i want to get the codes that has the last two characters=DE
Thanks
April 17, 2008 at 9:51 am
Yes it did
Thank you so much Lynn
Have a wonderful day
April 18, 2008 at 8:17 am
Just to make sure you get good data:
RIGHT(RTRIM(LTRIM(column_name)), 2)
With the previous example, you could have gotten a space instead of the desired two characters.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy