Q1.all the depts which has more then 10 empls? Q2.all the
dept which does not have any emply? Q3 all the emp which
does not have any dept? Q4 get all the emply detais with
the dept details it dept is exit otherwise any emp details?
Q5 how to debugg the dynamic sql and packages?
Answers were Sorted based on User's Feedback
Answer / ramkiran
select emp.deptno,emp.ename,dept.deptno,dept.dname from
emp,dept
where emp.deptno(+) = dept.deptno
order by 1
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / krish
1)select deptno,count(*)
from emp having count(*)=0 group by deptno;
2)select deptno,count(*)
from emp having count(*)>10 group by deptno;
3)select empname from emp where deptno is null;
4)select emp.deptno,emp.ename,dept.deptno,dept.dname
from emp,dept
where emp.deptno=dept.deptno(+);
Is This Answer Correct ? | 2 Yes | 6 No |
What is out parameter used for eventhough return statement can also be used in pl/sql?
What is difference between ms sql and mysql?
Where not exists in sql?
What does over partition by mean in sql?
How many commands are there in sql?
Is oracle sql free?
How many sql statements are used?
what is autonomouse transaction?
Is inner join same as self join?
what is a primary key? : Sql dba
What are the data types allowed in a table?
What are local and global Indexes and where they are useful.