Using PySpark, read data from a Hive table and return the second lowest salary.
Asked in the Technical interview stage. The author accidentally sorted descending under time pressure. For this PostgreSQL version, use the employees table.
second_lowest_salary.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee name |
| salary | DECIMAL(12,2) | Employee salary |