SQL scalar-valued function slow performance
I’m trying to optimize a query to remove the scalar valued function that returns a comma separated list. I’ve read online that making it inline should benefit performance. Could someone please help with making my UserDefinedFunction inline or recommend how to improve performance?