Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam DA0-002 Topic 4 Question 103 Discussion

Actual exam question for CompTIA's DA0-002 exam
Question #: 103
Topic #: 4
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?

Suggested Answer: C Vote an answer

The error occurs because SORT BY is not valid SQL syntax. To sort query results, SQL uses the ORDER BY clause. Replacing SORT BY with ORDER BY allows the statement to execute correctly and return the results ordered by the specified columns.

by Franklin at Jun 29, 2026, 02:09 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.