http://www.mysqltutorial.org/wp-content/uploads/2017/02/MySQL-GREATEST-and-LEAST-example.png