Your question is CASE WHEN Conditional Filtering. 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.
Capgemini Invent uses a project intake dashboard to prioritize client requests. Write a PostgreSQL query that derives a decision with CASE WHEN and returns only requests requiring escalation.
Exclude, Escalate, Review, or Standard using the stated business rules.Escalate, ordered by request_id.Use these rules in order:
Exclude.Escalate.Review.Standard.| Column | Type | Description |
|---|---|---|
| request_idPK | INTEGER | Unique client request identifier |
| client_name | VARCHAR(100) | Client organization name |
| budget_eur | NUMERIC(12,2) | Proposed project budget in euros |
| risk_score | INTEGER | Risk score from 0 to 10 |
| status | VARCHAR(20) | Current request status |