As the title says, is it possible to execute some SQL within a SQL column?
I have a large record set with a bunch of arbitrary decimal values that needs to be run against a small number of calculations that are stored as SQL in another table.
For example, I have 3000 rows where the values range from 10 to 100. Let's say each set of 1000 is Kelvin, Celsius and Fahrenheit respectively. The corresponding inline SQL table contains the formula that will convert them all to something else.
Is it possible to run this dynamic SQL against each of the values from the result set on-the-fly?
I know I can do this via a CURSOR or similar loop, but this will take quite a performance hit.
Is there a way to do this without incurring too many performance problems?