https://howtoprogramwithjava.com/wp-content/uploads/2014/06/sql-group-by-ex3.png