Tell me about the SQL window functions you know and how you have used them in the past, and describe a technical challenge you faced at your previous job and how you managed to overcome it.
For the hands-on portion, use the provided player and purchase data to demonstrate a practical ranking analysis.
player_name, total_spend, and spend_rank.| Column | Type | Description |
|---|---|---|
| player_idPK | INT | Unique player identifier |
| player_name | VARCHAR(100) | Player display name |
| region | VARCHAR(30) | Player region |
| Column | Type | Description |
|---|---|---|
| purchase_idPK | INT | Unique purchase identifier |
| player_id | INT | Player who made the purchase |
| amount | NUMERIC(10,2) | Purchase amount |
| status | VARCHAR(20) | Purchase processing status |