select
AVG (ROE05) as ROE05,
AVG (ROE06) as ROE06,
AVG (ROE07) as ROE07,
AVG (JLR05) as JLR05,
AVG (JLR06) as JLR06,
AVG (JLR07) as JLR07,
AVG (JLRZZ05) as JLRZZ05,
AVG (JLRZZ06) as JLRZZ06,
AVG (JLRZZ07) as JLRZZ07,
AVG (ZYZZ05) as ZYZZ05,
AVG (ZYZZ06) as ZYZZ06,
AVG (ZYZZ07) as ZYZZ07
from
table
where
PUBLISH_DATE between (sysDate-90) and sysDate例如这样的
但是数据里好多为0的,怎么能把为0的数据不计算到平均值里面呢?