engineering computer science MCQ #752

In SQL, what is a subquery?

engineering computer science MCQ #752

  1. Question 1

    Q1. In SQL, what is a subquery?

    • A) A query nested inside another query
    • B) A query that joins two or more tables
    • C) A query that groups data based on one or more columns
    • D) A query that sorts data in ascending or descending order

    Answer: A query nested inside another query

    Explanation: A subquery is a query nested inside another query, often used to provide data for the outer query or to simplify complex queries.