MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SQL

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following returns the average value of any numeric column in SQL?
A
Average function
B
AVG() function
C
Average ____ Value function
D
None of these
Explanation: 

Detailed explanation-1: -The AVG function returns the average (arithmetic mean) of the input expression values. The AVG function works with numeric values and ignores NULL values.

Detailed explanation-2: -The AVG() function returns the average value of an expression.

Detailed explanation-3: -The AVG() function returns the average value of a numeric column.

Detailed explanation-4: -SQL AVG function is used to find out the average of a field in various records. You can take average of various records set using GROUP BY clause. Following example will take average all the records related to a single person and you will have average typed pages by every person.

Detailed explanation-5: -In SQL, SUM() and AVG() functions are used to calculate total and average values in numeric columns.

There is 1 question to complete.