SQL Performance (MOSC)

MOSC Banner

query taking complete temp

edited Jul 11, 2014 5:00AM in SQL Performance (MOSC) 3 commentsAnswered


Hi,

We have query which is taking complete temp using not like condition when we remove the not like condition its comes out neatly. kindly help.

select a.* from  (select extract,DELGROUP,SOURCE_COMMIT,TARGET_COMMIT,SYSTIMESTAMP,CAPTIME,PMPTIME

from GGS.GGS_HEARTBEAT_HIST)  a,

(select DELGROUP,  max(SOURCE_COMMIT) latest_commit   from GGS.GGS_HEARTBEAT_HIST group by DELGROUP) b

where a.DELGROUP=b.DELGROUP and a.SOURCE_COMMIT=b.latest_commit and a.extract not like 'E0%';

if in the above query we remove the condition the output comes out clearly but not the desired one.

Regards,

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