Sixth exercise of mysql