Difficulty: Easy
Correct Answer: Queries can compute aggregates such as SUM, COUNT, AVG, MIN, and MAX
Explanation:
Introduction / Context:
Queries are the primary mechanism to retrieve and analyze data. In relational systems, SQL enables both selection of rows and computation of summaries. Understanding the difference between natural language and structured query languages helps set realistic expectations about what query tools provide out of the box.
Given Data / Assumptions:
Concept / Approach:
SQL supports aggregation, grouping, filtering, and joins. While end-user tools may offer natural-language layers, core DBMS engines expect structured syntax. Queries do much more than fetch rows: they can calculate totals, averages, and other statistics within the database for performance and correctness.
Step-by-Step Solution:
Verification / Alternative check:
Select queries in analytics routinely compute SUM/COUNT/AVG directly in the database layer.
Why Other Options Are Wrong:
Common Pitfalls:
Expecting DBMSs to interpret arbitrary natural language; overlooking the power of GROUP BY and aggregates.
Final Answer:
Queries can compute aggregates such as SUM, COUNT, AVG, MIN, and MAX
Discussion & Comments