Source: http://rims.ruforum.org/1B6787/advanced-sql-case-exercises-with-answers.pdf