MS SQL Server Joins Question:

What are the properties of sub-query?

Tweet Share WhatsApp

Answer:

A subquery is a SELECT statement that is nested within another T-SQL statement. A subquery SELECT statement if executed independently of the T-SQL statement, in which it is nested, will return a resultset. Meaning a subquery SELECT statement can standalone and is not depended on the statement in which it is nested. A subquery SELECT statement can return any number of values, and can be found in, the column list of a SELECT statement, a FROM, GROUP BY, HAVING, and/or ORDER BY clauses of a T-SQL statement. A Subquery can also be used as a parameter to a function call. Basically a subquery can be used anywhere an expression can be used.

Download SQL Server Joins PDF Read All 49 SQL Server Joins Questions
Previous QuestionNext Question
Explain sub-query?What is right outer join in SQL server joins?