🔥 3-day streak
Databricks Certified Data Engineer Associate105 / 150
Question 105 of 150
A data engineer has a Delta table `order_events` with columns `order_id`, `event_ts`, and `status`. Each order can have many rows as its status changes over time. The engineer needs to produce a result set containing exactly one row per `order_id` showing its most recent status (based on `event_ts`). Which Spark SQL approach correctly returns only the latest status per order?
Reviewed for accuracy · Report an issueNext question