Although I don't fully understand how the union works, your code really made my understanding dynamic SQL very clear. I had envisioned something messier. ColdCoffee I really appreciate your time...
Thanks EVERYBODY for the great help. Back in the late 80's I was sent through, I think, Sybase's entire line of courses. You'd think I'd remember the updates nearly 20...