adspace


How subquery works in sql?

Answer Posted / Rahul Bhardwaj

A subquery is a type of SQL query that is nested within another SQL statement. It retrieves data from a database based on the results of another SQL query. Subqueries can be used for various purposes, such as filtering data, performing calculations, and joining tables. The outer query retrieves data based on the results returned by the inner query. There are several types of subqueries in SQL: simple subquery, correlated subquery, existential subquery, and common table expression (CTE).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2091


what are all the common sql function? : Sql dba

1131


define sql insert statement ? : Sql dba

1098


what are aggregate and scalar functions? : Sql dba

1129


What is your daily office routine?

2346


how to use regular expression in pattern match conditions? : Sql dba

1113


How do I remove duplicates in two columns?

1187


how many tables will create when we create table, what are they? : Sql dba

1144


Is primary key clustered index?

1019


Is primary key always clustered index?

1095


What is the current version of sql?

1094


how to escape special characters in sql statements? : Sql dba

1114


what is collation? : Sql dba

1229


Can we rollback truncate?

1074


Can we use distinct and group by together?

1133