Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "Phil Hunt" Newsgroups: comp.databases.ms-sqlserver,microsoft.public.sqlserver.programming Subject: Re: SQL help again Date: Sun, 2 Oct 2011 12:48:31 -0400 Organization: Aioe.org NNTP Server Lines: 17 Message-ID: References: NNTP-Posting-Host: 1F4WqZgmZBperfMg6Tnoqw.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-RFC2646: Format=Flowed; Response X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-Priority: 3 X-MSMail-Priority: Normal Xref: x330-a1.tempe.blueboxinc.net comp.databases.ms-sqlserver:703 I tried CASE EventID when NULL then 1 else 0 end It always return 0, why ? "Phil Hunt" wrote in message news:j6a2kf$3d5$1@speranza.aioe.org... > How do I count a column that is NULL without CASE. I was looking at NULLIF > and ISNULL, they can't seem to do the job. > > Thanks > > Sorry about double posting, I replied to my question by mistake. >