Answered step by step
Verified Expert Solution
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
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 yourStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started