• I agree with Luis, a while loop is not needed in this query.

    😎