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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better varchar or nvarchar?

736


How many joins can you have in sql?

687


Can you join a table to itself?

712


How to execute a stored procedure?

757


what is the use of double ampersand (&&) in sql queries?

820






What are synonyms in sql?

730


What are instead of triggers?

791


Which is faster count (*) or count 1?

757


What are the parameter modes supported by pl/sql?

731


write an sql query to find names of employee start with 'a'? : Sql dba

775


what is cursor. write example of it. What are the attributes of cursor.

976


How do you modify a column in sql?

730


how many groups of data types? : Sql dba

728


How to know the last executed procedure?

809


how to see the create table statement of an existing table? : Sql dba

736