CompTIACompTIA
DA0-002 · Question #61
DA0-002 Question #61: Real Exam Question with Answer & Explanation
Sign in or unlock DA0-002 to reveal the answer and full explanation for question #61. The question stem and answer options stay visible for context.
Data Acquisition and Preparation
Question
The following SQL code returns an error in the program console: SELECT firstName, lastName, SUM(income) FROM companyRoster SORT BY lastName, income Which of the following changes allows this SQL code to run?
Options
- ASELECT firstName, lastName, SUM(income) FROM companyRoster HAVING SUM(income) >
- BSELECT firstName, lastName, SUM(income) FROM companyRoster GROUP BY firstName,
- CSELECT firstName, lastName, SUM(income) FROM companyRoster ORDER BY firstName,
- DSELECT firstName, lastName, SUM(income) FROM companyRoster
Unlock DA0-002 to see the answer
You've previewed enough free DA0-002 questions. Unlock DA0-002 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#SQL#Aggregate Functions#GROUP BY#Query Syntax