I have the following code
$query = "SELECT playerID, name,
SUM(runs_bowled) / SUM(wickets) AS average
FROM matchPlayer
GROUP BY playerID ";
BUT this returns a 0 if the person hasn’t taken a wicket, what I want is
SUM(runs_bowled) / SUM(wickets) AS average
to only activate if the SUM(wickets) is greater (or equal) than 10.
Depending on your needs:
Or: