thanks Eirikur, I've got several typical styles I've inherited via copy paste over time that would be improved that way, I know.
I still have things that are selecting rownum from sys.columns, or a static tally table, or that cte example I had pasted above.
I just need to grab some time to update some of my samples.
Thanks again my friend!
Lowell
--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!