Hello,
Create TABLE T1_TEMP(RO_TYPE VARCHAR2(30), Jurisdiction Varchar2(10), Reopening_Order NUMBER, RO_Pending NUMBER, RO_Waiting NUMBER, RO_Granted NUMBER);
Insert into T1_TEMP VALUES ('Provider Requested','J5',1,0,0,1);
Insert into T1_TEMP VALUES ('Appeal','J5',2,1,0,1);
Insert into T1_TEMP VALUES ('Contractor Initiated','J5',3,1,2,3);
Insert into T1_TEMP VALUES ('Home Initiated','J5',8,1,2,3);
Insert into T1_TEMP VALUES ('Govt Request','J5',11,1,2,3);
Insert into T1_TEMP VALUES ('State Initiated','J5',4,1,2,3);
When I query against the above table, I have:
I am trying to get the numbers summed by each column, grouped by only Juridisction and sort the data based on Reopening_Order. The expected result is shown below:
The grouping must not have Reopening_Order. I tried a few methods, but didn't get the expected result.
Any help is greatly appreciated. Thank you!!