Skip to content

Commit 12447c8

Browse files
authored
Update 0569.(Hard) Median Employee Salary.sql
1 parent dc267ca commit 12447c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Database/0569.(Hard) Median Employee Salary.sql

+5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
/****************************************************************************************************
22
569. Median Employee Salary
3+
569. 员工薪水中位数
34
45
Difficulty: Hard
56
67
The Employee table holds all employees.
78
The employee table has three columns: Employee Id, Company Name, and Salary.
9+
Employee 表包含所有员工。Employee 表有三列:员工Id,公司名和薪水。
810
+-----+------------+--------+
911
|Id | Company | Salary |
1012
+-----+------------+--------+
@@ -28,7 +30,10 @@ The employee table has three columns: Employee Id, Company Name, and Salary.
2830
+-----+------------+--------+
2931
3032
Write a SQL query to find the median salary of each company.
33+
请编写SQL查询来查找每个公司的薪水中位数。
34+
3135
Bonus points if you can solve it without using any built-in SQL functions.
36+
挑战点:你是否可以在不使用任何内置的SQL函数的情况下解决此问题。
3237
+-----+------------+--------+
3338
|Id | Company | Salary |
3439
+-----+------------+--------+

0 commit comments

Comments
 (0)