0% found this document useful (0 votes)
61 views2 pages

Properties and Different Types of Sub-Queries in SQL Server

This document discusses the properties and types of sub-queries in SQL Server. It notes that sub-queries must be enclosed in parentheses, placed on the right side of a comparison operator, and cannot contain an ORDER BY clause. There are three types of sub-queries: single-row, which returns one row; multiple-row, which returns multiple rows; and multiple column, which returns multiple columns. The document aims to help job seekers and readers understand sub-queries.

Uploaded by

shubham sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views2 pages

Properties and Different Types of Sub-Queries in SQL Server

This document discusses the properties and types of sub-queries in SQL Server. It notes that sub-queries must be enclosed in parentheses, placed on the right side of a comparison operator, and cannot contain an ORDER BY clause. There are three types of sub-queries: single-row, which returns one row; multiple-row, which returns multiple rows; and multiple column, which returns multiple columns. The document aims to help job seekers and readers understand sub-queries.

Uploaded by

shubham sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Properties and Different Types of

Sub-Queries in SQL Server


Vithal Wadje

Background

Many times in interview ,interviewer asked the question what are


properties and different Types of Sub-Queries in sql server,at that
time freshers or any experienced candidate may be confuse how to
give answer, so by considering above requirement i have decided to
write this blog to help job seeker and who wants to know  what are
properties and different Types of Sub-Queries in sql server , so let us
see.

Properties of Sub-Query

1. A sub-query must be enclosed in the parenthesis.


2. A sub-query must be put in the right hand of the comparison
operator, and
3. A sub-query cannot contain an ORDER-BY clause.
4. A query can contain more than one sub-query.

Types of Sub-Query

1. Single-row sub-query, where the sub-query returns only one


row.
2. Multiple-row sub-query, where the sub-query returns multiple
rows,. and
3. Multiple column sub-query, where the sub-query returns
multiple columns.

Summary
:
I hope this small blog is helpful for all job seeker and other readers, if
you have any suggestion then please contact me.
:

You might also like