Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
Highest Manager Salary Query
00:00
5 left

Highest Manager Salary Query

EasySQL · PostgreSQL

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
Interviewer

Your question is Highest Manager Salary Query. Start with the requirements and the one table in the Question tab.

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.
CodePostgreSQL
You need to log in / sign up to run or submit.Ln 1
Run your query to see results here.