我对SQL的工作方式相当陌生,我在设置某些数据的报告方面遇到了困难。
这是我的代码
SELECT [course_book no_],
[customer no_],
[not a licensed attorney],
[book type code],
[total cle credits]
FROM pcam_data
WHERE ( [posting date] BETWEEN '07/01/2014' AND '9/30/2014' )
AND ( [entry no_] NOT IN (SELECT [applies to entry no_]
FROM pcam_data AS PCam_Data_1
WHERE ( [entry type] = 1 )) )
GROUP BY [course_book no_],
[customer no_],
[not a licensed attorney],
[book type code],
[total cle credits]
我要做的是将课程编号(第1列)和相似(突出显示)的部分编号汇总在报告的末尾 - 客户编号不需要保留在该总和中。我可以要求一些意见或指导吗?我可以根据要求提供输出图像。