I have a function in my query that uses a column in my table and results in a unique number for that input.
SELECT FunctionResultsinUniqueNumber(t.[table1Column]) AS Col1
FROM Table1 t
I would also like to join another table which already has that unique number.
SELECT o.[SameUniqueValueAsGeneratedByTheFunctioninTable1] AS Col2
FROM Table2 o
I am not sure if this is possible but I would like to reference the function result to equal the column in Table2 for a successful join: say,
SELECT FunctionResultsinUniqueNumber(t.[table1Column]) AS Col1
FROM Table1 t
LEFT JOIN Table2 o
ON Col1 = o.[SameUniqueValueAsGeneratedByTheFunctioninTable1]
Thanks for any clarification, help.