This is probably more info than you need, but I remember being confused by the differnce between IS NULL and ISNULL, which may or may not be an issue for you.
First of all, The ISNULL function won't really cut it here, and moving onto the CASE statement is the easiest. The online docs are good for info about CASE - yours is pretty straightforward.
Note that IS NULL is different than the function
ISNULL(expression,value).
"ISNULL(expression,value)" returns a result of the same datatype as the expression.
"fieldA IS NULL" returns a boolean, and in SQL Server can be interchangeably written as fieldA = NULL. The IS NULL syntax is the ANSI SQL standard syntax, and is preferable to use because of that.
SELECT
CASE WHEN A IS NULL AND B IS NULL THEN 1
ELSE 0
END AS cc
, A
, B
FROM
#Table
yields
cc A B
---- --------------------------- ---------------------------
1 NULL NULL
0 NULL 1998-10-29 00:00:00.000
1 NULL NULL
0 1998-12-07 00:00:00.000 NULL
0 1998-07-20 00:00:00.000 NULL
0 1998-11-09 00:00:00.000 1999-06-11 00:00:00.000
[sig][/sig]