>>What is wrong with CAST(null as int)? Why the Coalesce is necessary?
>
>Because he wanted to get 0 as the field's value, I assume.
I think the approach Hugo suggested may work. Since I am using this column as a placeholder the field value will be set according to the business logic of the program (I know that me and logic do not go together well <g>). Most of the values will be set to 0 or 1. But there could be a case where the value will be NULL and this is why I want to allow NULLs.
Thank you, Hugo.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham