Hi
Can anyone tell me how I make the query below give me both return results as I run it now it only shows me the first one?
Thanks
Can anyone tell me how I make the query below give me both return results as I run it now it only shows me the first one?
Thanks
Code:
ALTER PROCEDURE dbo.CES_CheckCountToCloseDown
/**/ (
@ElecID as real
)
AS
declare @closedown int
declare @allresultsin int
set @closedown =(
SELECT COUNT(*) AS CheckCloseDown
FROM dbo.Election
WHERE (CountToCloseDown IS NULL) AND (ElectionID = @ElecID)
)
RETURN @closedown
set @allresultsin =(
SELECT COUNT(*) AS AllResultsIn
FROM dbo.DivElection
WHERE (ResultsComplete is NULL and ElectionID = @ElecID)
)
RETURN @allresultsin