https://videosashka.com/watch/KaPvDalVkZs/ranking-functions-with-over-clause-in-sql-server-2012