Select C1, C2, C3, (Select Sum(ColSum1)
From PAYS P
Where P.F1 = C.F1
And P.F2 = C.F2) As TotalPay
From Client C
Where ToPay <> (Select Sum(ColSum1)
From PAYS P
Where P.F1 = C.F1
And P.F2 = C.F2)
Order By C1 Asc, C2 Asc
When I run the previous Select I get this error:
ORA-00979: not a GROUP BY expression
If I comment any nested Select it works. I wanna know if it is possible to use both nested Select
Thanks.
![[bomb] [bomb] [bomb]](/data/assets/smilies/bomb.gif)
From PAYS P
Where P.F1 = C.F1
And P.F2 = C.F2) As TotalPay
From Client C
Where ToPay <> (Select Sum(ColSum1)
From PAYS P
Where P.F1 = C.F1
And P.F2 = C.F2)
Order By C1 Asc, C2 Asc
When I run the previous Select I get this error:
ORA-00979: not a GROUP BY expression
If I comment any nested Select it works. I wanna know if it is possible to use both nested Select
Thanks.
![[bomb] [bomb] [bomb]](/data/assets/smilies/bomb.gif)