Given a dataset containing a list of worker’s names, their positions, and salaries at Amazon, select the highest-paid Software Engineer at the company.
Asked in the technical screen, this query-writing task uses the employees and positions tables. Ignore workers whose salary is NULL. If multiple eligible workers share the highest salary, return the alphabetically first employee.
employee_name, position_title, and salary.employee_name ascending.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee's full name |
| position_id | INT | Identifier of the employee's position |
| salary | NUMERIC(12,2) | Annual salary in US dollars |
| Column | Type | Description |
|---|---|---|
| position_idPK | INT | Unique position identifier |
| position_title | VARCHAR(100) | Position title |