Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Combining Stored Procedures?
I have two stored procedures
ALTER PROCEDURE dbo.qryCountOne
(@inputID int)
AS SELECT COUNT(*) AS CountOne FROM dbo.TableOne WHERE
(dbo.TableOne.value = @inputID)
ALTER PROCEDURE dbo.qryCountTwo
(@inputID int)
AS SELECT COUNT(*) AS CountTwo FROM dbo.TableTwo WHERE
(dbo.TableTwo.value = @inputID)
What would be the best way to combine these two, so that I only have to make one database query, and the two values (CountOne, and CountTwo) will get returned to me
Any help\pointers greatly appreciated,
Noel Received on Thu Jul 07 2005 - 06:55:42 CDT