Interview Preparation mode beta
Funny Facebook Status Funny Facebook Status
Enter your email address

What is a Sub-Query, in MS SQL Server?

Nice?Vote!
asked 1 year ago in SQL Server Interview Questions and Answers by R (19,530 points) edited 1 year ago by R

1 Answer

Nice?Vote!
Sub query: is the secondary query in a query.
ex: select col1,col2 from (select scol1 as col1,scol2 as col2 from sub_query_tbl) as a
the query in paranthesis is sub query , in subquery no order by should use.
there are diff types of sub queries exists,
independent sub query, correlated sub query,single valued,multi valued
answered 3 months ago by anonymous

Related questions