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
What are the subsets of sql?
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
What is relationship? How many types of relationship are there?
How many row comparison operators are used while working with a subquery?
Explain the difference between 'between' & 'and' operators in sql
Why do we need view in sql?
how can we optimize or increase the speed of a mysql select query? : Sql dba
how do you control the max size of a heap table? : Sql dba
What is difference between pl and sql?
What is the syntax to add a record to a table?
What is java sql connection?
Is join same as left join?
what is not null constraint? : Sql dba
What is the difference between microsoft access and sql server?
What is record variable?