Your question is SQL Query for Matching Salaries. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
A healthcare technology maintains salary records from its internal compensation system and an external benchmarking feed. Write a PostgreSQL query to find employers present in both sources with the same annual salary.
employer_name and annual_salary.| Column | Type | Description |
|---|---|---|
| record_idPK | INT | Internal salary record identifier |
| employer_name | VARCHAR(120) | Employer name |
| annual_salary | NUMERIC(12,2) | Annual salary amount |
| role_title | VARCHAR(100) | Role associated with the salary |
| Column | Type | Description |
|---|---|---|
| benchmark_idPK | INT | Benchmark record identifier |
| employer_name | VARCHAR(120) | Employer name from the benchmark feed |
| annual_salary | NUMERIC(12,2) | Benchmarked annual salary amount |
| benchmark_source | VARCHAR(80) | External benchmark source |