2.8 Calculate median
Calculate the median salary of all employees based on the following employee salary table.
| ID | NAME | SALARY |
|---|---|---|
| 1 | Rebecca | 7000 |
| 2 | Ashley | 11000 |
| 3 | Rachel | 9000 |
| 4 | Emily | 7000 |
| 5 | Ashley | 16000 |
| … | … | … |
SPL script:
| A | |
|---|---|
| 1 | =T(“salary.xlsx”) |
| 2 | =A1.median(,SALARY) |
A2 Calculate median salary of all employees.
SPL Official Website 👉 https://www.esproc.com
SPL Feedback and Help 👉 https://www.reddit.com/r/esProcSPL
SPL Learning Material 👉 https://c.esproc.com
SPL Source Code and Package 👉 https://github.com/SPLWare/esProc
Discord 👉 https://discord.gg/sxd59A8F2W
Youtube 👉 https://www.youtube.com/@esProc_SPL