Your question is Second and Third Max in SQL. Start with the requirements and the one table 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.
Cognizant's project finance team maintains billing rates for delivery projects. Write a PostgreSQL query to identify the second-highest and third-highest distinct billable rates in the active project rate-card table.
billable_rate is NULL.| Column | Type | Description |
|---|---|---|
| rate_card_idPK | INT | Unique rate-card record identifier |
| project_name | VARCHAR(100) | Cognizant project name |
| billable_rate | DECIMAL(10,2) | Hourly billable rate |
| effective_date | DATE | Date the rate became effective |