を選択...リターン2 COUNT(*)の結果は、私は、ストアドプロシージャを持っていると私はそれが次を返したい
TotalItems | FailedItems
@totalItems | @failedItems
where --> @totalItems = `SELECT COUNT(*)
From dbo.OdsBuild AS P
where P.StartTime Between @StartDate and @EndDate
AND P.Official = 1`
where --> @failedItems = `SELECT COUNT(*)
From dbo.Items AS P
where p.StartTime Between @StartDate and @EndDate
AND P.Official = 1 AND (P.Result = 7 OR P.Result = 8 OR P.Result = 14)`