I have a stored procedure that basically just does a select. Can I do aggregate functions on the procedure's result set within query analyzer without using temp tables or the actual query behind the proc?
Here is the query I tried with no luck:
select t.field1, sum(t.field2) from (
exec sp_proc1 'param1', '1/1/2008', '10/20/2008' ) t
group by t.field1
Here is the query I tried with no luck:
select t.field1, sum(t.field2) from (
exec sp_proc1 'param1', '1/1/2008', '10/20/2008' ) t
group by t.field1