Text book excercises in Seven Databases in Seven Weeks.