SQL: Select the highest conditional sum on a table
https://stackoverflow.com/questions/929060
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow