I am seeing the following error when I run the below code.
Unsupported subquery type cannot be evaluated
When I comment the third select statement and run the query, the query is running with the result. This error is popping up at the last select statement.
Can I know how do I put the last select statement in my query?
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')