Skip to content
Skills
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
Home
/
Data Analyst
/
Medium
/
Running total of sales
medium
10 pts · first answer counts
sql
window-functions
Running total of sales
Which expression gives a running (cumulative) total of daily sales ordered by date?
Choose one answer
A.
SUM(sales) OVER (ORDER BY sale_date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
B.
SUM(sales) GROUP BY sale_date
C.
SUM(sales) OVER (PARTITION BY sale_date)
D.
CUMSUM(sales) FROM daily_sales
Submit answer
Report a problem
← Latest order per customer
What a p-value means →