Why would you do the union all. Wouldn't the following work? The advantage would be one pass of the table.
select Case When ColumnName Is Not NULL then ColumnName Else 0 End from SomeTable ;
Recent Threads
Attachments
Library
Quick Reference
Useful Links
Rules of Conduct
FAQs
Join the Forum
Archives
Sample Index
2003 Indexes