"is it better to create a function"Which of these do you mean?SELECT Col1, Col2, dbo.My_FN_Col3Lookup(Col3)FROM MyTable
orSELECT Col1, Col2, LU.DescriptionFROM MyTable AS T JOIN dbo.My_FN_Col3Lookup() AS LU ON LU.ID = T.Col3
or the "un-function" method:SELECT Col1, Col2, LU.DescriptionFROM MyTable AS T JOIN MyLookupTable AS LU ON LU.ID = T.Col3
Assuming good indexes etc. I would expect (3) to be fastest, although for very few results (1) may be faster.Kristen