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;

Answer Posted / sudarshanbehera07@gmail.com

Ans: b. Null

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the subsets of sql?

748


how to delete duplicate rows from a join tables(I have three tables on that join) how do you know which join is need to be used? The select statement I have is: SELECT gc_skill_type.skill_type, gc_area_tec.area, gc_technology.technology, gc_technology.id_technology, gc_area_tec.id_area_tec FROM gc_skill_type, gc_area_tec, gc_technology WHERE gc_area_tec.id_skill_type (+) = gc_skill_type.id_skill_type AND gc_technology.id_area_tec (+) = gc_area_tec.id_area_tec order by gc_skill_type.skill_type asc, gc_area_tec.area asc, gc_technology.technology asc

3576


What is relationship? How many types of relationship are there?

783


How many row comparison operators are used while working with a subquery?

749


Explain the difference between 'between' & 'and' operators in sql

717






Why do we need view in sql?

725


how can we optimize or increase the speed of a mysql select query? : Sql dba

689


how do you control the max size of a heap table? : Sql dba

700


What is difference between pl and sql?

708


What is the syntax to add a record to a table?

779


What is java sql connection?

687


Is join same as left join?

749


what is not null constraint? : Sql dba

717


What is the difference between microsoft access and sql server?

709


What is record variable?

705