🎯 Few days left this month Support SQLTest.online and help us keep SQL practice free for everyone. Donate today →
SQL code copied to buffer
Task 177:

Calculate Median Salary

Firebird
The median is the amount such that half of the employees receive a salary higher than this amount, and half receive a salary lower than it.
Find the median salary according to the SALARY column of the EMPLOYEE table.
Display the result in the MEDIAN_SALARY column.
Expected result Columns: 1 · Rows: 1
MEDIAN_SALARY

Write your query below and click "Check it!". Tables are described in the right pane.

Tutorial
The query result will appear here. Ctrl+Enter - Run query