How can I join on a stored procedure?

后端 未结 9 2005
渐次进展
渐次进展 2020-12-25 10:48

I have a stored procedure that takes no parameters, and it returns two fields. The stored procedure sums up all transactions that are applied to a tenant, and it returns the

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-25 11:31

    I resolved this problem writing function instead of procedure and using CROSS APPLY in SQL statement. This solution works on SQL 2005 and later versions.

提交回复
热议问题