Explain how you would structure a VLOOKUP or INDEX/MATCH formula to consolidate risk scores from multiple departments for Uber.
For SQL grading, treat each assessment as the lookup key and return the latest available score for each required department. Preserve assessments even when a department has no score.
Output
- One row per assessment, with
assessment_id, assessment_date, operations_score, finance_score, safety_score, and compliance_score.
- Use
NULL when a departmental score is unavailable.
- Order by
assessment_date ascending, then assessment_id ascending.