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 / ramya pisharody

Ans-1:

SELECT DEPTNO, COUNT(*) FROM EMP
GROUP BY DEPTNO
HAVING COUNT(*)>10;

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is primary key in db?

517


Why having clause is used in sql?

538


What are basic techniques of indexing?

842


Can we change the table name in sql?

530


How do you add a column to a table?

598






What is a constraint?

565


Explain the the delete statements in sql?

575


table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

3338


what is difference between delete and truncate commands? : Sql dba

575


What is forward declaration in pl sql?

588


What does an inner join do?

557


What are the usages of sql?

564


explain about mysql and its features. : Sql dba

543


Which is faster joins or subqueries?

552


What are the types of dbms?

545