Your question is Top Models Per Asset Class. 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.
Balyasny Asset Management wants to compare research models within each asset class using their evaluation returns. Write a PostgreSQL query that identifies the three highest performance ranks for each asset class.
return_pct during the first quarter of 2025.DENSE_RANK, with the highest average return ranked first.| Column | Type | Description |
|---|---|---|
| model_idPK | INT | Unique research model identifier |
| model_name | VARCHAR(100) | Name of the research model |
| asset_class | VARCHAR(50) | Asset class assigned to the model |
| launched_on | DATE | Date the model was launched |
| Column | Type | Description |
|---|---|---|
| performance_idPK | INT | Unique performance evaluation identifier |
| model_id | INT | Referenced research model |
| evaluation_date | DATE | Date of the performance evaluation |
| return_pct | DECIMAL(8,4) | Model return percentage for the evaluation period |