Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 (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) 2 Declare a cursor

image text in transcribed

2 (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) 2 Declare a cursor that display department name, average of salaries in each department. Your program should print department name and average of salaries in every category as shown: 'Below': if average of salaries is less than or equal 3000, 'Average': if average of salaries is greater than 3000 and less than 10000, and 'Above': if average of salaries greater than or equal 10000. Your program should also print the department name that have the maximum salary. (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

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

Am I staying angry at someone, hoping to make him or her feel bad?

Answered: 1 week ago

Question

8. Providing support during instruction.

Answered: 1 week ago