P
Paid The Umpire
Quick question, I've got the below SQl statement which works well,
except I want the "CountOfOuts" to count all the values in the table
except those which have the value "NO" in it.
Is there a simple way?
SELECT DISTINCTROW MatchDetails.PlayerName,
Count(MatchDetails.Position) AS Innings, Count(MatchDetails.HowOut) AS
CountOfOuts, Sum(MatchDetails.Runs) AS Runs, [Runs]/Count([Position])
AS Average
FROM MatchDetails
GROUP BY MatchDetails.PlayerName;
except I want the "CountOfOuts" to count all the values in the table
except those which have the value "NO" in it.
Is there a simple way?
SELECT DISTINCTROW MatchDetails.PlayerName,
Count(MatchDetails.Position) AS Innings, Count(MatchDetails.HowOut) AS
CountOfOuts, Sum(MatchDetails.Runs) AS Runs, [Runs]/Count([Position])
AS Average
FROM MatchDetails
GROUP BY MatchDetails.PlayerName;