Database - What is sub-query?

What is sub-query?

Sub-query is a query within a Query.
Example of sub-query:
Select CustId, Custname From Customer Where Cust_Id IN (Select Doct_Id from Doctor)

What is sub-query?

A query within a query is defined as a sub-query. A sub query is executed by enclosing it within another query. Sub queries are used for returning single row as an atomic value. A sub query is nested in DML statements, and enclosed in parenthesis.
Database - Explain the use of group by clause
Group By" is used to derive aggegate values by grouping similar data.....
Database - Difference between clustered and non-clustered index
A clustered index is unique for a given table. The actual data is at the leaf level of a clustered index and data is resorted......
Database - Define aggregate and scalar functions
Aggregate Functions return a single value by operating against a group of values....
Post your comment