Question DB-SQL-0078
HardWhich SQL feature computes a running total of sales by date?
- A.
DISTINCT amount
- B.
HAVING SUM(amount)
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
SQL question
Which SQL feature computes a running total of sales by date?
DISTINCT amount
HAVING SUM(amount)
Sign up free to see the answer and a step-by-step explanation.
SUM(amount) OVER (ORDER BY sale_date)
GROUP BY sale_date