arrow
arrow
arrow
Which of the following is an aggregate function in SQL?
Question



Which of the following is an aggregate function in SQL?

A.

CONCAT()

B.

AVG()

C.

SUBSTRING()

D.

LENGTH()

E.

NOW()

Correct option is B

The AVG() function is an aggregate function in SQL. It calculates the average value of a numeric column, ignoring NULL values. Aggregate functions process multiple rows and return a single result.
Important Key Points:
1. Definition of Aggregate Functions: Aggregate functions perform operations on a set of rows and return a single value. Examples include:
· SUM(): Calculates the total.
· AVG(): Calculates the average.
· COUNT(): Counts the rows.
· MIN() and MAX(): Find the smallest or largest value.
2. Usage of AVG(): Syntax for using AVG() in SQL:
SELECT AVG(column_name) FROM table_name;
Knowledge Booster:
· CONCAT(): Used for concatenating strings, not an aggregate function.
· SUBSTRING(): Extracts a portion of a string; it operates on a single row and is not an aggregate function.
· LENGTH(): Returns the length of a string in characters; not an aggregate function.
· NOW(): A date-time function that returns the current timestamp; not an aggregate function.

Free Tests

Free
Must Attempt
Video Solutions

RBI Assistant Pre 2026 Full Mock Test -01

languageIcon English
  • pdpQsnIcon100 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon60 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Asst Prelims 2026 : Reasoning Section Test 01

languageIcon English
  • pdpQsnIcon35 Questions
  • pdpsheetsIcon35 Marks
  • timerIcon20 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Office Attendant 2026 Full Mock Test - 01

languageIcon English
  • pdpQsnIcon120 Questions
  • pdpsheetsIcon120 Marks
  • timerIcon90 Mins
languageIcon English
test-prime-package

Access ‘IBPS SO IT Officer’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
354k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow