Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

outer select not working (ORA-00979 : not a group by expression) with db link

Sunny86Dec 5 2018 — edited Dec 6 2018

Dear All,

outer select not working (ORA-00979 : not a group by expression)

When executing without an outer select it is working fine. Also without the db link in source schema it is working fine. But we need to connect to the source through dblink for certain reporting requirements. Is there any work around or solution to resolve this error? any help will be highly appreciated.

select customer,customer_mobile,account_Number,outstanding_amount

from

(

select customer,customer_mobile,sales.get_Account_number@dblink(s.customer) account_Number,sum(outstanding_amount)outstanding_Amount from sales.sales_Detail@dblink s where

customer='abc'

group by customer,customer_mobile,sales.get_Account_number@dblink(s.customer)

)

This post has been answered by BEDE on Dec 5 2018
Jump to Answer
Comments
Post Details
Added on Dec 5 2018
17 comments
1,172 views