Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following are the five built-in functions provided by SQL?

  • A.COUNT, SUM, AVG, MAX, MIN
  • B.SUM, AVG, MIN, MAX, MULT
  • C.SUM, AVG, MULT, DIV, MIN
  • D.SUM, AVG, MIN, MAX, NAME

Answer: A

Correct answer: COUNT, SUM, AVG, MAX, MIN

These five are the standard aggregate functions, each reducing a set of rows to a single value: how many, the total, the mean, the largest and the smallest.

They are usually paired with GROUP BY, which computes one such value per group, and with HAVING, which filters on the result. Two points of behaviour are worth remembering: they ignore nulls, except COUNT(*) which counts rows regardless; and MULT, DIV and NAME in the distractors are not SQL functions at all.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.