Which type of subquery executes once for each row evaluated by the outer query, depending on values provided by the outer statement? MCQ with Answer and Explanation

Which type of subquery executes once for each row evaluated by the outer query, depending on values provided by the outer statement?
A. Scalar Subquery
B. Independent Subquery
C. Correlated Subquery
D. Static Subquery
Answer: Option C
Solution (By JKSSB Mock Tests)
A Correlated Subquery is an inner query that references columns from the outer query, meaning it must be executed repeatedly for each row evaluated by the outer query.

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 true statement about indexes?
A. Indexes are only used for primary keys
B. Indexes always improve performance
C. Indexes improve the speed of SELECT queries but can slow down INSERT, UPDATE, and DELETE operations
D. Indexes cannot be created on views

Correct Answer: Option C


Explanation:
Indexes speed up data retrieval but require additional maintenance during data modifications, which can slow down DML operations.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which aggregate function is used to count the number of rows in a table?
A. MAX
B. COUNT
C. AVG
D. SUM

Correct Answer: Option B


Explanation:
COUNT returns the number of rows in a table or group.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is an alternate key?
A. A foreign key
B. The primary key
C. A super key with extra attributes
D. A candidate key that is not chosen as the primary key

Correct Answer: Option D


Explanation:
An alternate key is any candidate key that is not the primary key.

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