Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN SQL 5 (Consider table employees with the following colunms (EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL PHONE NUMBER , HIRE_DATE ,JOB_ID ,SALARY ,COMMISSION_PCT, MANAGER_ID , DEPARTMENT_ID) Declare

image text in transcribed IN SQL

5 (Consider table employees with the following colunms (EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL PHONE NUMBER , HIRE_DATE ,JOB_ID ,SALARY ,COMMISSION_PCT, MANAGER_ID , DEPARTMENT_ID) Declare a cursor that display department name, number of employees in each department. Your program should print department name and the number of employees in every category as shown: 'Below': if number of employees less than or equal 3 or department name start with A, 'Average': if number of employees greater than 3 and less than 10, and 'Above': if number of employees greater than or equal 10. Your program should also print the number of departments classified in each categories (Below, Average, Above). * 65 (12 Points) Enter your

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

commands are used by the program command shape Boomi

Answered: 1 week ago

Question

Prepare a short profile of Lucy Clifford ?

Answered: 1 week ago

Question

Prepare a short profile of Rosa parks?

Answered: 1 week ago

Question

Prepare a short profile of victor marie hugo ?

Answered: 1 week ago