Solutions to a SQL coding test.