【发布时间】:2020-08-12 23:20:17
【问题描述】:
我有一个包含多个连接的查询,并且有一个从计数创建的字段,如下所示:
select
t1.clientID,
t1.clientName,
t2.invoiceNo
(select count (*) from invoices where clientID = t1.clientID) AS clientswithSale
from customers t1
JOIN invoices t2 on t2.clientID = t1.clientID
如何在具有多个源的数据流中使用聚合转换来创建该列?
我可以将源链接到 count() 函数吗?
谢谢
【问题讨论】: