Keep SQLtest alive: Help cover this month's $100 server costs to keep all lessons and the SQL playground online. Support the project →
SQL code copied to buffer
Task 27:

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.

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