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 is a composite key ? : Sql dba
What is data type in sql?
What is inner join in sql?
What is an index? What are the types of indexes? How many clustered indexes can be created on a table?
What is denormalization in a database?
What is online transaction processing (oltp)?
Explain what is table in a database?
How many columns should be in an index?
Does sql backup shrink transaction log?
How is a PL/SQL code compiled?
Is primary key is clustered index?
Are left and right joins the same?
what is try_catch block in procedure
What are the basic sql commands?
Is sql easier than java?