我正试图获取标记为已结束的问题的百分比,出于某种原因,所有条目的结果均为0。
知道我可能做错了什么吗?
SELECT
CASE
WHEN COUNT(IF(progress = 'CLOSED', id)) = 0 THEN 0
ELSE 1.0 * (COUNT(IF(progress = 'CLOSED', id)) / COUNT())
END as pct_closed,
assigned_date
FROM table
WHERE assigned_date >= YYYY-MM-DD
GROUP BY 2
答案 0 :(得分:1)
尝试一下:
openssl cms sign ...