Courseiva

DA0-002 Data Acquisition and Preparation Practice Question

A data analyst is reviewing sales data and wants to find orders where the order total is between $100 and $500, inclusive. Which WHERE clause is correct?

⚠ Common exam trap

DA0-002 often tests the misconception that BETWEEN is exclusive of its endpoints, when it is actually inclusive — and also tests the AND vs OR confusion in range conditions.

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

✓

total BETWEEN 100 AND 500

The BETWEEN operator is inclusive of both endpoints, so 'total BETWEEN 100 AND 500' returns rows where total is greater than or equal to 100 and less than or equal to 500 — exactly the inclusive range requested. It is equivalent to 'total >= 100 AND total <= 500' but more concise and readable.

Answer analysis

Option-by-option breakdown

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

  • ✗

    total > 100 AND total < 500

    Why it's wrong here

    Strict inequalities exclude orders totalling exactly $100 or $500, contradicting the inclusive requirement; BETWEEN or >= and <= is needed. It is tempting because it correctly captures the interior range, and would be right if the stem asked for orders strictly greater than $100 and strictly less than $500.

  • ✗

    total IN (100, 500)

    Why it's wrong here

    IN matches only the two exact values 100 and 500, excluding every total between them; BETWEEN 100 AND 500 is inclusive of both bounds. IN tempts when filtering a discrete set of known values, such as specific order IDs, status codes or region codes.

  • ✓

    total BETWEEN 100 AND 500

    Why this is correct

    BETWEEN is inclusive at both bounds, so total BETWEEN 100 AND 500 returns rows where the total equals 100 or 500 as well as every value in between, satisfying the stem's inclusive requirement without needing separate >= and <= comparisons.

  • ✗

    total >= 100 OR total <= 500

    Why it's wrong here

    OR makes the predicate true for almost every row: any total below $500 or above $100 qualifies, so nearly all orders return. AND is required to bound both ends. It is tempting because the two comparison operators look like a range, and OR would be correct when matching rows satisfying either of two independent conditions.

About these practice questions

This DA0-002 question is part of Courseiva's 1,004-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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 September 2026 · checked against the official CompTIA exam blueprint

This DA0-002 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 DA0-002 exam.