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. Static Subquery
B. Independent Subquery
C. Correlated Subquery
D. Scalar 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
What is the difference between a database and a data warehouse?
A. Databases are for OLTP, data warehouses for OLAP
B. They are the same
C. Both A and B
D. Databases store current data; data warehouses store historical data

Correct Answer: Option C


Explanation:
Databases are optimized for transaction processing (OLTP), while data warehouses are designed for analytical reporting (OLAP) using historical data.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which of the following best defines a Database?
A. Software for creating spreadsheets
B. A collection of related data organized for easy access
C. Hardware used to store programs
D. A single file containing text

Correct Answer: Option B


Explanation:
A database is an organized collection of related data stored electronically for efficient retrieval and management.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which of the following is not an aggregate function in SQL?
A. DESC
B. AVG
C. MAX
D. SUM

Correct Answer: Option A


Explanation:
DESC is a keyword for sorting order, not an aggregate function.

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