How to get the sum of country values and have them only appear once – Mysql
I have my current sql query which I will later convert to a HIVE query. SELECT home_team, COUNT(home_team) from results WHERE results.home_score < results.away_score GROUP BY home_team UNION SELECT away_team, COUNT(away_team) FROM results WHERE results.away_score < results.home_score GROUP BY away_team…