🔥 3-day streak
Databricks Certified Data Engineer Associate146 / 150
Question 146 of 150

An analyst needs to compute a running total of purchase amounts for each customer, ordered by transaction date, so that each row shows the cumulative spend up to and including that transaction. The source Delta table 'transactions' has columns customer_id, txn_date, and amount. Which Spark SQL expression produces the correct cumulative sum?

Reviewed for accuracy · Report an issueNext question