I need to have a column that is computed from columns, let's say A and B. I want it to be 1 or more if both are NULL, and NULL or 0 in one or the other has a value in it. This doesn't work:
(A IS NULL AND B IS NULL) as cc
neither does:
(ISNULL(A,1)+ISNULL(B,1)) as cc
How would I do this? PS I'm using Microsoft SQL Server 7 [sig][/sig]
(A IS NULL AND B IS NULL) as cc
neither does:
(ISNULL(A,1)+ISNULL(B,1)) as cc
How would I do this? PS I'm using Microsoft SQL Server 7 [sig][/sig]