Which clause is used in a SQL SELECT statement to organize matching rows into summary groups based on one or more columns? MCQ with Answer and Explanation

Which clause is used in a SQL SELECT statement to organize matching rows into summary groups based on one or more columns?
A. ORDER BY
B. SORT BY
C. HAVING
D. GROUP BY
Answer: Option D
Solution (By JKExamLibrary)
The GROUP BY clause groups rows that have the same values into summary rows, often used alongside aggregate functions like COUNT(), MAX(), or AVG().

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

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1 Report Error
What is the difference between an inner join and an outer join?
A. Inner join returns only matching rows; outer join returns matching plus non-matching rows from one or both tables
B. Inner join returns all rows; outer join returns matching only
C. Outer join is used for more than two tables
D. They are the same

Correct Answer: Option A


Explanation:
Inner join returns rows where the join condition matches. Outer join (left, right, full) returns unmatched rows as well with NULLs.

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
Which normal form eliminates transitive dependencies?
A. BCNF
B. 2NF
C. 3NF
D. 1NF

Correct Answer: Option C


Explanation:
Third Normal Form (3NF) removes transitive dependencies on non-prime attributes.

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
The actual collection of data tuples stored in a table at any specific point in time is called a what?
A. Relation Instance
B. Relation Domain
C. Relation Degree
D. Relation Schema

Correct Answer: Option A


Explanation:
A Relation Instance is the specific collection of data rows (tuples) present in a table at a given moment. It changes frequently as data is modified.

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