Is there any way to return the min and max of a field based on the Select Top X in one query? I am getting Error 3122 when I attempt to add an expression to find the min/max and can't figure a way around it other than to create a second query to find a Min/Max value from there. I'm trying to avoid having a second query.
--This is the error I am getting--
You tried to execute a query that does not include the specified expression <name> as part of an aggregate function. (Error 3122)
Thanks
--This is the error I am getting--
You tried to execute a query that does not include the specified expression <name> as part of an aggregate function. (Error 3122)
Thanks