SQL Language (MOSC)

MOSC Banner

ORA-00979: not a GROUP BY expression

edited Jul 28, 2019 10:58PM in SQL Language (MOSC) 5 commentsAnswered

Hi team,

Do you have an idea why following query is working fine on 12.1.0.2.0 with compatible =11.2.0.4.0  but failing on 12.2.0.1.0 with compatible = 12.1.0.2.0?

Is there a way to refine the query to work for compatible = 12.1.0.2.0?

thank You

select

'??:97A::SAFE//' || t1.SUB_ACCOUNT_97A AS SUBSAFE_ACCOUNT_97A,

'??:17B::ACTI//' || 'Y' as ACT_17B,

cursor ( select

'??:35B:' || t2.SEC_ID_35B AS INSTRUMNET_ID_35B,

'??' || t2.SEC_NAME_35B AS INSTRUMNET_NAME_35B,

t2.SEC_SUB_ID,

'??:90B::MRKT//ACTU/' || t2.CLOSING_PRICE_90B_C AS MRKT_ACTU_90B,

'??:98A::PRIC//' || t2.PRICE_DATE_90B AS PRIC_DATE_90B,

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center