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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions