DA0-002 Data Acquisition and Preparation Practice Question
A data analyst needs to retrieve the top 5 most expensive products from a 'products' table sorted by price descending. Which TWO SQL clauses are required to achieve this? (Select TWO).
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 price DESC
ORDER BY DESC sorts prices descending, and LIMIT restricts to 5 rows. GROUP BY and HAVING are for aggregation; WHERE is for filtering but not needed here.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
HAVING COUNT(*) > 1
Why it's wrong here
HAVING filters groups, not applicable.
- ✗
WHERE price > 100
Why it's wrong here
Filtering is not required to get top 5 overall.
- ✓
ORDER BY price DESC
Why this is correct
Sorts prices from highest to lowest.
- ✗
GROUP BY price
Why it's wrong here
Grouping is not needed to get top 5 products.
- ✓
LIMIT 5
Why this is correct
Limits result to first 5 rows after sorting.
Go deeper
Related to this question
About these practice questions
One of 986 original DA0-002 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 →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.