nerdexam
CompTIACompTIA

DA0-001 · Question #481

DA0-001 Question #481: Real Exam Question with Answer & Explanation

The correct answer is C: ORDER. {"question_number": 2, "question": "Given the following produce data for a small retail grocery store: Which of the following queries returns the quantity from highest to lowest?", "correct_answer": "C", "explanation": "The ORDER BY clause (C) is the SQL clause used to sort query

Data Analysis

Question

Given the following produce data for a small retail grocery store: Which of the following queries returns the quantity from highest to lowest?

Options

  • AGROUP BY
  • BMAX
  • CORDER
  • DSELECT

Explanation

{"question_number": 2, "question": "Given the following produce data for a small retail grocery store: Which of the following queries returns the quantity from highest to lowest?", "correct_answer": "C", "explanation": "The ORDER BY clause (C) is the SQL clause used to sort query results. To return quantity from highest to lowest, you would use ORDER BY quantity DESC. GROUP BY (A) is used to aggregate rows sharing a common value, not to sort. MAX (B) is an aggregate function that returns only the single highest value, not a sorted list. SELECT (D) specifies which columns to retrieve but has no sorting capability on its own.", "generated_by": "claude-sonnet", "llm_judge_score": 3}

Topics

#SQL queries#Data sorting#ORDER BY clause

Community Discussion

No community discussion yet for this question.

Full DA0-001 PracticeBrowse All DA0-001 Questions