Specify a correlated subquery using a scalar UDF in the same way that you specify a column name or parameterized value in the GROUP BY clause.
Specify a correlated subquery using a scalar UDF in the same way that you specify a column name or parameterized value in the GROUP BY clause.