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 / girija shankar dash
ANS-2:
SELECT department_id,COUNT(employee_id) AS "NO. OF EMPLOYEES"
FROM employees
GROUP BY department_id
HAVING COUNT(employee_id) = 0;
DEPARTMENT_ID NO. OF EMPLOYEES
201 0
311 0
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What are sql indexes?
How do you update f as m and m as f from the below table testtable?
How long does it take to learn pl sql?
what is msql? : Sql dba
What are the disadvantages of file system?
Is ms sql is free?
What does where 1/2 mean in sql?
What are triggers in sql?
what is a table in a database ? : Sql dba
How to create your own reports in sql developer?
What is difference between left and right outer join?
what are the disadvantages of mysql? : Sql dba
Which are the different case manipulation functions in sql?
what is a foreign key ? : Sql dba
what are date and time intervals? : Sql dba