SyntaxFix
Write A Post
Hire A Developer
Questions
Use a scalar-valued UDF, not a table-value one, then you can use it in a SELECT as you want.