SQL Language (MOSC)

MOSC Banner

issue when MEDIAN and SUM used in combination

Developement team found issue when combining MEDIAM and SUM in the same query.

They have distilled the issue to the below version of the issue. Any advice is greatly appreciated.



create table avg_bug_test(

    case_col    varchar2(11), 

    duration    number(*,0), 

    quarter     varchar2(6), 

    q2h_knum_b   varchar2(10)

  )

;

 

insert into avg_bug_test values('OK',22,'1.2020','AB1234');

insert into avg_bug_test values('OK',39,'1.2020','AB1234');

insert into avg_bug_test values('OK',30,'1.2020','AB1234');

insert into avg_bug_test values('OK',48,'1.2020','AB1234');

commit;


create or replace force view avg_bug_test_vw

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