This is a theoretical problem similar to an actual problem I am having.
Imagine I have a database of millions of grades for students with rows loo