Fourth exercise of mysql