• Thanks. I confirmed with my boss and he said it cannot be done as you suggest.

    So any other suggestion to the original question?

    Can you please elaborate on the reasons why not. Lowell's solution is fast and seems logically equivalent to what you are doing.

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin