Sql exercise | Computer Science homework help