4. Select sum(A.salary) +sum(B.salary) as TOT_SAL from ( select LEVEL emp_id,level*100 salary,case when mod (level,2)=0then 2 else null end dept_id from dual connect by level<6 )A right outer join (select level emp_id ,level*200 salary ,case when mod (level,3)=0 then 2 else null end dept_id from dual connect by level<6)B
On A.dept_id=B.dept_id
And A.emp_id=B.emp-id;
Post New Answer View All Answers
Why partition by is used in sql?
What is the difference between view and stored procedure?
What is rtm stands for?
What is trigger in sql?
What is before and after trigger?
What are the two characteristics of a primary key?
Is hadoop a nosql?
Is sql difficult?
what are tables and fields? : Sql dba
Can a trigger call a stored procedure?
what is clause? : Sql dba
what is the difference between join and union? : Sql dba
What are the different types of joins in sql?
What are the advantages of sql? Explain
What do you understand by exception handling in pl/sql?