Courseiva
Data Querying And AnalysishardMultiple ChoiceObjective-mapped

DS0-001 Data Querying And Analysis Practice Question

A database administrator needs to ensure that a query calculating running totals is performant. Which window function clause is essential to order the calculation sequence?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

ORDER BY

The ORDER BY clause inside the OVER() function determines the sequence for running calculations.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • GROUP BY

    Why it's wrong here

    GROUP BY is not used within window function definitions.

  • PARTITION BY

    Why it's wrong here

    PARTITION BY groups the data but does not define the order of calculation.

  • ROWS BETWEEN

    Why it's wrong here

    ROWS BETWEEN defines the frame, not the sorting of the data.

  • ORDER BY

    Why this is correct

    ORDER BY is required to define the sequential nature of a running total.

About these practice questions

One of 216 original DS0-001 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official CompTIA exam blueprint

This DS0-001 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DS0-001 exam.