| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Combining Stored Procedures?
Noel wrote:
> 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
Leaving open the possibility that you somehow confused Oracle with being a Microsoft product ... Please allow me to reinforce what Sybrand said.
![]() |
![]() |