$ 0 0 It seems that the same EMP_NBR may have multiple EMP_PI_JOIN_KEY values. Why not GROUP BY C.EMP_PI_JOIN_KEY in the scalar subquery?
It seems that the same EMP_NBR may have multiple EMP_PI_JOIN_KEY values. Why not GROUP BY C.EMP_PI_JOIN_KEY in the scalar subquery?