运行以下代码时,我看到以下错误。
无法评估不受支持的子查询类型
当我注释第三个 select 语句并运行查询时,查询正在运行结果。select
此错误在最后一条语句中弹出。
我可以知道如何将最后一个 select 语句放在我的查询中吗?
SELECT "A1" as CUT
,"B1" as SERV
,"c1" as NAME
,"D1"
,"E1" as REP
,(SELECT COUNT(ACT2."B1")
FROM AAA as ACT2
WHERE ACT2."AST" in ('A', 'T')
and ACT2."UCE" = 'IN'
and ACT2."CUST" = ACT."CUST") as NCount
,(SELECT ACT2."B1"
FROM AAA as ACT2
WHERE ACT2."AST" in ('A', 'T')
and ACT2."UCE" = 'IN'
and ACT2."CUST" = ACT."CUST"
LIMIT 1) as INTER
FROM BBB
left outer join AAA as ACT
on "WNB" = ACT."B1"
WHERE "PCD" in ('PD', 'PD2')
and "PDT" = 0
and ACT."AST" in ('A', 'T')