Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
尝试在报表生成器中显示图表的完整类别组,但它缺少类别值,其中使用计数函数返回空值(即尝试计数以显示用户队列中的文档数)
在图表中,如何使所有类别值显示在轴上,即使返回空值也是如此。
使用报表生成器 2008。
提前致谢
SELECT UserName, SUM(Documents) AS Documents FROM ( SELECT UserName, 1 AS Documents FROM Documents UNION ALL SELECT UserName, 0 AS Documents FROM Users )