Which SQL function returns the average of a numeric column? MCQ with Answer and Explanation

Which SQL function returns the average of a numeric column?
A. MEAN()
B. AVG()
C. SUM()
D. COUNT()
Answer: Option B
Solution (By JKSSB Mock Tests)
AVG() calculates the average of the values in a numeric column.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
Which SQL command is used to reverse or undo all modifications made during the current transaction that have not yet been committed?
A. REVERT
B. SAVEPOINT
C. UNDO
D. ROLLBACK

Correct Answer: Option D


Explanation:
The ROLLBACK command is a TCL statement used to undo transactions, restoring the database to its last committed or safe state.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which language category in SQL is used by database administrators to grant and revoke access privileges and security permissions?
A. DDL
B. DML
C. TCL
D. DCL

Correct Answer: Option D


Explanation:
Data Control Language (DCL) includes commands like GRANT and REVOKE, which manage privileges and security configurations for database users.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which of the following is a valid SQL statement to create a view?
A. Both A and B
B. Neither
C. CREATE VIEW view_name AS SELECT ...;
D. CREATE VIEW view_name (columns) AS SELECT ...;

Correct Answer: Option A


Explanation:
Both syntaxes are valid: CREATE VIEW view_name AS SELECT ... and with column aliases.

This question belongs to: Computer Database Management System (DBMS)