I'd like to create a calculated column that reverses the string in an existing column. For example, if I have the following table
ID String
----------
1 Alpha
2 Beta
3 Gamma
I'd like to get this:
ID String Reverse
-------------------
1 Alpha ahplA
2 Beta ateB
3 Gamma ammaG
I know how to use SEARCH
, FIND
, LEFT
, RIGHT
, MID
, SUBSTITUTE
, REPLACE
, REPT
, LEN
etc. but can't seem to get them to do what I want.
I'm providing one possible solution below, but I'm interested in other possibilities as well.