I recived some great help earlier today but it was more difficult when I should implement it in my query than I thought. My real query includes several left joins.
I wa
Assuming that you are trying to rank these values, One possible way of doing this is first determine the min and max values of T3M and T1G, then using something like this:
SELECT ...,
((T3M-@T3M_Min)/(@T3M_Max-@T3M_Min))*9+1 as T3MOutput,
((T1G-@T1G_Min)/(@T1G_Max-@T1G_Min))*9+1 as T1GOutput
There may have to be some conversion to an integer value