Solution to tasks 1-3 from sample database exam 2014