本文介绍了如何在Sql Server中汇总列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 HI all, 我如何根据1到12,13到24之间的欠款来计算收款金额。 集合advisor_Code Plan_name advisor_id到期否 3200 1010200022 GIFDL - 36 127 1 1000 1010200022 GIFDL - 36 127 2 1000 1010200022 GIFDL - 36 127 3 1000 1010200022 GIFDL - 36 127 4 5000 1010200022 GIFDL - 36 127 12 5000 1010200022 GIFDL - 36 127 13 i我期待 集合advisor_Code Plan_name advisor_id到期没有 6200 1010200022 GIFDL - 36 127 1-12 10000 1010200022 GIFDL - 36 127 12-24 解决方案 HI all,how do i sum the collection amount based on the Due no's like 1 to 12 , 13 to 24,..Collectionadvisor_CodePlan_nameadvisor_idDue No3200 1010200022 GIFDL - 36127 11000 1010200022GIFDL - 36127 21000 1010200022GIFDL - 36127 31000 1010200022GIFDL - 36127 45000 1010200022GIFDL - 36 127 125000 1010200022GIFDL - 36 127 13 i am expectingCollection advisor_Code Plan_name advisor_id Due No6200 1010200022 GIFDL - 36 127 1-1210000 1010200022 GIFDL - 36 127 12-24 解决方案 这篇关于如何在Sql Server中汇总列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-23 07:50