Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AnnieM
Starting Member
6 Posts |
Posted - 2009-07-28 : 12:00:31
|
Hi all,I am very happy to find this forum dedicated to SQL! I received this warning "Warning: Null value is eliminated by an aggregate or other SET operation." with an Insert statement. I've confirmed that the results are correct despite the warning Nonetheless, I'd like to fix the warning if possible. Here's one of the culprit clauses:CASE SUM(case ISNULL(curCSAP_Reading,0) WHEN 0 THEN 0 ELSE 1 END) /* avoid divide by zero problem */WHEN 0 THEN 0 ELSESUM(curCSAP_ReadPct_to_P)/SUM(case ISNULL(curCSAP_Reading,0) WHEN 0 THEN 0 ELSE 1 END) END AS curRead_AveDoes anyone know how to reword that so I don't get the warning?Much thanks and happy programming!Annie |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
AnnieM
Starting Member
6 Posts |
Posted - 2009-07-28 : 17:55:44
|
| Thank you for your help, Brett!Annie |
 |
|
|
|
|
|