Advertisement
Advertisement
| 08.12.2008 at 03:23PM PDT, ID: 23642994 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: |
select GROUPING_ID (b.level3, b.level2, b.level1 , b.level4, b.level5, b.level6),
sum(salary), b.level1, b.level2, b.level3 , b.level4, b.level5, b.level6
from emp a, location b
where a.city = b.level1
group by rollup(b.level3, b.level2, b.level1, b.level4, b.level5, b.level6);
drop table emp;
create table emp (emp_no number, salary number, city varchar2(20));
insert into emp values (1, 100, 'DALLAS');
insert into emp values (2, 200, 'DALLAS');
insert into emp values (3, 300, 'NEW YORK');
insert into emp values (4, 400, 'CHICAGO');
insert into emp values (5, 150, 'HOUSTON');
commit;
drop table LOCATION;
CREATE TABLE LOCATION
(
LEVEL1 VARCHAR2(20 BYTE),
LEVEL2 VARCHAR2(20 BYTE),
LEVEL3 VARCHAR2(20 BYTE),
LEVEL4 VARCHAR2(10 BYTE),
LEVEL5 VARCHAR2(10 BYTE),
LEVEL6 VARCHAR2(10 BYTE),
NODE_NAME VARCHAR2(10 BYTE)
);
SET DEFINE OFF;
Insert into LOCATION Values ('CHICAGO', 'ILLINOIS', 'USA', 'None', 'None','None', 'CITY3' );
Insert into LOCATION Values ('HOUSTON', 'TEXAS', 'USA', 'None', 'None', 'None','CITY1' );
Insert into LOCATION Values ('DALLAS', 'TEXAS', 'USA', 'None', 'None', 'None','CITY2' );
COMMIT;
|