Answered step by step
Verified Expert Solution
Question
1 Approved Answer
urgent please help Write a SQL query which lists the employee's highest salary, lowest salary in each Job title and in each department name. -
urgent please help Write a SQL query which lists the employee's highest salary, lowest salary in each Job title and in each department name. - The result set should have department name, job title, lowest salary. DEPARTMENTS PDEPARTMENT_ID * DEPARTMENT_NAME MANAGER_ID LOCATION_ID JOB_HISTORY PF EMPLOYEE_ID P-START_DATE END DATE F * JOB_ID F DEPARTMENT_ID LOCATIONS LOCATION_ID STREET_ADDRESS POSTAL CODE * CITY STATE_PROVINCE COUNTRY_ID F EMPLOYEES - The result set should be ordered by department name. COUNTRIES P" COUNTRY_ID COUNTRY_NAME F REGION_ID JOBS P * JOB_ID + JOB_TITLE MIN_SALARY MAX_SALARY PEMPLOYEE ID FIRST_NAME * LAST NAME U * EMAIL PHONE_NUMBER * HIRE_DATE * JOB_ID SALARY COMMISSION_PCT IF MANAGER_ID F DEPARTMENT_ID V 1 REGIONS P - REGION_ID REGION_NAME
Step 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