use EMP and DEPT tables, in the Live SQL, to perform the following operations. List the Departments's Names that have no employees solution: select de.DNAME Department_Name, count(em.EMPNO) No_Of_Employees from SCOTT."EMP" em,SCOTT."DEPT" de where em.DEPTNO = de.DEPTNO group by de.DNAME;

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter6: Updating Data
Section: Chapter Questions
Problem 12SCG
icon
Related questions
Question

use EMP and DEPT tables, in the Live SQL, to perform the following operations.

List the Departments's Names that have no employees

solution:

select de.DNAME Department_Name, count(em.EMPNO) No_Of_Employees from SCOTT."EMP" em,SCOTT."DEPT" de where em.DEPTNO = de.DEPTNO group by de.DNAME;

 

i need it using NVL function.

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Intermediate SQL concepts
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr