As you can see on the column 'Race Position' I have a set of values corresponding to the participants results. 1 being 1st Position and so on.
What I wanted was to be able to concat the values and give the first 3 strings as so; 1'st', 2'nd', 3'rd'. The position after will all finish with 'th' at the end for example 4th, 5th, 6th ,7th and so on.
Is there any way to implement this? I have used a cross join in order to make my positions work.
Best Answer
I have the generic expression you need:
What this does is the following
st
is appendednd
is appendedrd
is appendedth
appendedTo test this out, run the following
UPDATE 2017-04-13 14:29 EDT
You asked me
Basically, I placed your query inside a subquery and applied the generic expression.