我试图在PL/SQL中实现这个SQL代码select SUM(SUM(distinct inv_total) - SUM(distinct credit_total) ) as TOTALfrom invoicegroup by inv_total, credit_totalDeclare
total invoice.inv_tota
我试过使用Selectp.PCount Distinct,但不知道如何总结p.PCount的计数基于Ric的代码,我已经尝试转换,这样我仍然有一个列表,我以后在productsPassed中为每个产品使用一个列表,然后使用StringBuilder构建一个html表。New With {.Product = p.Key,
.PCount = p