Question: Write pl/sql code to display each job type along with number of employees working under this job, as show below. Output will be like: ******

Write pl/sql code to display each job type along with number of employees working under this job, as show below.

Output will be like:

  1. ****** CLERK *******
  2. total number of employees : 4
  3. ****** SALESMAN *******
  4. total number of employees : 4
  5. ****** ANALYST *******
  6. total number of employees : 2
  7. ****** MANAGER *******
  8. total number of employees : 3
  9. ****** PRESIDENT *******
  10. total number of employees : 1

Note:

1-Use explicit cursor.

2-Use for loop.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!