Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Highest Manager Salary Query

EasySQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

Your question is Highest Manager Salary Query. Start with the requirements and the one table on the right.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.

Problem

Mphasis wants to review compensation levels in its delivery operations. Write a PostgreSQL query to identify the highest salary currently recorded for employees whose job title is exactly Manager.

Requirements

  1. Filter employees to include only rows where job_title equals Manager.
  2. Return the highest matching salary in a column named highest_manager_salary.
  3. Use an aggregate function and do not return individual employee records.

Schema

employees
ColumnTypeDescription
employee_idPKINTUnique employee identifier
employee_nameVARCHAR(100)Employee's name
job_titleVARCHAR(50)Employee's current job title
salaryNUMERIC(10,2)Annual salary in INR
Tablesemployees
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results