Link to home
Start Free TrialLog in
Avatar of gfk76
gfk76

asked on

NULL Value eliminated in aggregate function

Hi Experts!
I was hoping someone could be abel to assist me with an SQL query for my Sybase database.

The query below gives me the warning
NULL Value eliminated in aggregate function

It seams like the query gives me correct result, but I cannot live with the warning
select
count(case when Programs.Level=1 then 1 else NULL end) as Level1,
count(case when Programs.Level=2 then 1 else NULL end) as Level2
from Programs key join Customers key join ProgramHead
*
*
*

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Jan Franek
Jan Franek
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gfk76
gfk76

ASKER

Ahhh.....

Thank you very much!

That did the trick