Search ⌘K
TikTok
TikTok

Foundations Track · Easy · 15 min

Second-highest Salary

TikTok wants a manager brief for second-highest salary. Return the second-highest salary amount in the table as second_highest_salary.

Foundations Track
Easy
15 min
query basics

Company labels are directional practice context, not official interview guidance.

Timer 00:00
Back to practice

Objective

Practice query basics through a TikTok-tagged business scenario.

Approach

Use this track to lock in clean query structure, basic filtering logic, and confidence with grouped output.

Company context

Company labels are directional practice context, not official interview guidance.

TikTok wants a manager brief for second-highest salary. Return the second-highest salary amount in the table as second_highest_salary.

employee_salary
employee_id INT
salary INT
employee_idsalary
1120000
295000
3120000
488000
576000
Editor
SQL workspace

Run queries against the protected question data, then submit once the result shape looks right.

Sign in to run SQL

Create a free account or sign in before running queries against protected question data.