I need to determine the max value of an object based on the values of sub objects.
exec GetSubObjects @ID = ID
yields a result set of sub objects with an int for status
I need the highest status from that result set.
is there a way to do an aggregate on the results set straight away?