You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
id is the primary key (column with unique values) for this table.
16
+
departmentId is a foreign key (reference column) of the ID from the Department table.
17
+
Each row of this table indicates the ID, name, and salary of an employee. It also contains the ID of their department.
18
+
19
+
20
+
Table: Department
21
+
22
+
+-------------+---------+
23
+
| Column Name | Type |
24
+
+-------------+---------+
25
+
| id | int |
26
+
| name | varchar |
27
+
+-------------+---------+
28
+
id is the primary key (column with unique values) for this table.
29
+
Each row of this table indicates the ID of a department and its name.
30
+
31
+
32
+
A company's executives are interested in seeing who earns the most money in each of the company's departments. A high earner in a department is an employee who has a salary in the top three unique salaries for that department.
33
+
34
+
Write a solution to find the employees who are high earners in each of the departments.
0 commit comments