我想求每个月的实际天数不算空值 这个SQL如何来实现
select count(distinct 日期字段) as 天数
from 表
where 日期字段 is not null
where 字段 is not null