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. SUM()
B. MEAN()
C. COUNT()
D. AVG()
Answer: Option D
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 of the following is a type of lock in a database?
A. Exclusive lock
B. None
C. Shared lock
D. Both A and B

Correct Answer: Option D


Explanation:
Shared locks allow multiple transactions to read a resource, while exclusive locks allow only one transaction to write.

This question belongs to: Computer Database Management System (DBMS)
Question #2
What is the primary difference between data and information?
A. There is no difference between data and information
B. Data refers to hardware, information to software
C. Data is always structured, information is unstructured
D. Data is raw facts, while information is processed data

Correct Answer: Option D


Explanation:
Data consists of raw, unprocessed facts, whereas information is data that has been processed and given meaning for decision-making.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is the situation called when two or more transactions are permanently blocked, each waiting for a lock held by the other transaction to be released?
A. Starvation
B. Concurrency
C. Isolation failure
D. Deadlock

Correct Answer: Option D


Explanation:
A Deadlock occurs when two or more transactions are stuck in a circular dependency, each waiting for resources locked by the other, preventing progress.

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