Third exercise of mysql