Which of the following is a non-aggregate function in SQL? MCQ with Answer and Explanation

Which of the following is a non-aggregate function in SQL?
A. LENGTH()
B. AVG()
C. SUM()
D. COUNT()
Answer: Option A
Solution (By JKSSB Mock Tests)
LENGTH() (or LEN()) is a string function that returns the length of a string, not an aggregate. SUM, COUNT, AVG are aggregates.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
Which database structure is created to drastically speed up the retrieval of rows from a table at the expense of slower data updates?
A. Constraint
B. Schema
C. View
D. Index

Correct Answer: Option D


Explanation:
An Index is a performance optimization structure created on table columns to search and locate matching rows quickly without performing a full table scan.

This question belongs to: Computer Database Management System (DBMS)
Question #2
What is the difference between a database and a database management system?
A. Database is a file; DBMS is a table
B. DBMS is the data; database is the software
C. They are the same
D. A database is the data; DBMS is the software that manages it

Correct Answer: Option D


Explanation:
A database is a collection of structured data, while a DBMS is the software used to interact with and manage that data.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is an attribute called when it can hold more than one value for a single entity instance, such as multiple phone numbers for a person?
A. Complex Attribute
B. Derived Attribute
C. Composite Attribute
D. Multi-valued Attribute

Correct Answer: Option D


Explanation:
A Multi-valued Attribute is an attribute that can store multiple distinct values for a single entity instance (e.g., skill_set, phone_numbers).

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