DA0-001 · Question #127
Which one the following is not considered an aggregate function?
The correct answer is C. SELECT. The SELECT statement is a fundamental SQL command for retrieving data from a database, distinct from aggregate functions that perform calculations on groups of rows.
Question
Which one the following is not considered an aggregate function?
Options
- ASUM
- BMIN
- CSELECT
- DMAX
How the community answered
(31 responses)- A3% (1)
- B6% (2)
- C90% (28)
Why each option
The `SELECT` statement is a fundamental SQL command for retrieving data from a database, distinct from aggregate functions that perform calculations on groups of rows.
`SUM` is an aggregate function that calculates the total sum of a set of values.
`MIN` is an aggregate function that returns the smallest value in a set.
`SELECT` is a SQL keyword used to query data from a database, specifying which columns to retrieve, and it does not perform an aggregate calculation across a set of rows. Aggregate functions, in contrast, operate on a collection of input values and return a single scalar value.
`MAX` is an aggregate function that returns the largest value in a set.
Concept tested: SQL aggregate functions vs. statements
Source: https://learn.microsoft.com/en-us/sql/t-sql/functions/aggregate-functions-transact-sql
Topics
Community Discussion
No community discussion yet for this question.