Not a GROUP BY error on instances having different database versions
Dear All
I am trying to fetch data from a view but it is showing error of not a GROUP BY expression however same view I can run on different instance without any error. The only difference I have noticed is that one instance has database version 12.1.0.2.0 (instance showing error in view) while other instance has database version 11.1.0.7.0 Is this can be cause of error however SQL of view on both instances is exactly same? I am also sharing view's SQL.
create or replace view xxrcl_tagged_receipt_details_v as
select x.cash_receipt_id,
y.order_number,
(select name