diff --git a/queries.py b/queries.py --- a/queries.py +++ b/queries.py @@ -59,14 +59,32 @@ def timeRank(year,country): print("\t".join([str(x) for x in rec])) -def populationStrength(): - pass +def populationStrength(year,country): + date1=yearStart(year) + date2=yearStart(year+1) + query=""" + select round((rating_after-50)/100)*100 as rating, count(ppt.pin) + from players_performance_tournaments as ppt + join (select pin,max(datum) as max_datum from players_performance_tournaments where datum>=date(?) and datum