• Nice question.

    It and the discussion illustrate a couple of the defects of (T-)SQL.

    Tom