<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>difference between subquery and correlated subquery in oracle - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/difference-between-subquery-and-correlated-subquery-in-oracle/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/difference-between-subquery-and-correlated-subquery-in-oracle/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Thu, 09 Sep 2021 07:26:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>difference between subquery and correlated subquery in oracle - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/difference-between-subquery-and-correlated-subquery-in-oracle/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is the difference between the SubQuery and Corelated SubQuery ?</title>
		<link>https://www.wikitechy.com/interview-questions/sql/what-is-the-difference-between-the-subquery-and-corelated-subquery/</link>
					<comments>https://www.wikitechy.com/interview-questions/sql/what-is-the-difference-between-the-subquery-and-corelated-subquery/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 20:30:02 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Allstate Solut interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Conduent interview questions and answers]]></category>
		<category><![CDATA[correlated subquery and nested subquery]]></category>
		<category><![CDATA[correlated subquery example]]></category>
		<category><![CDATA[correlated subquery example in oracle]]></category>
		<category><![CDATA[correlated subquery example in sql servernon correlated subquery]]></category>
		<category><![CDATA[correlated subquery in oracle 10g example]]></category>
		<category><![CDATA[correlated subquery in sql server]]></category>
		<category><![CDATA[correlated subquery questions]]></category>
		<category><![CDATA[correlated subquery tutorial]]></category>
		<category><![CDATA[correlated subquery tutorialspoint]]></category>
		<category><![CDATA[correlated subquery vs non correlated subquery]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[difference between subquery and correlated subquery in oracle]]></category>
		<category><![CDATA[example of correlated subquery]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mindtree interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[non correlated subquery example in oracle]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[oracle correlated subquery in from clause]]></category>
		<category><![CDATA[oracle correlated subquery in select clause]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[Prokarma Softech Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[R Systems interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[subquery vs correlated subquery]]></category>
		<category><![CDATA[Tata Consultancy Service interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[ValueLabs interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[when to use correlated subquery]]></category>
		<category><![CDATA[xenosoft interview questions and answers]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=969</guid>

					<description><![CDATA[Answer : The inner query is executed only once...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="subquery" class="color-pink" style="text-align: justify;"><span style="font-family: inherit; font-size: 2rem;">Subquery</span></h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The inner query is executed only once.</li>
<li>The inner query will get executed first and the output of the inner query used by the outer query.</li>
<li>The inner query is not dependent on outer query.</li>
</ul>
</div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight">
<pre><code id="code1" class="hljs" data-lang=""><span class="nt">SELECT Employee_name, dept_no 
FROM Employee 
WHERE Employee_name IN (SELECT Employee_name FROM Customer);</span></code></pre>
</figure>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="correlated-subquery" class="color-blue">Correlated SubQuery</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The outer query will get executed first and for every row of outer query, inner query will get executed.</li>
<li>So the inner query will get executed as many times as number of rows in result of the outer query.</li>
<li>The outer query output can use the inner query output for comparison. This means inner query and outer query dependent on each other.</li>
</ul>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-sql code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-sql code-embed-code">SELECT Employee_name,dept_id <br/>FROM Employee<br/>WHERE Employee_name IN (SELECT Employee_name FROM dept WHERE Employee.dept_id=dept.dept_id);</code></pre> </div>
</div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn"></div>
</div>
<div class="ImageContent">
<div class="hddn" style="text-align: justify;"><img fetchpriority="high" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/sql/what-is-the-difference-between-the-subquery-and-corelated-subquery.png" alt="Subquery and Corelated Subquery" width="411" height="140" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/sql/what-is-the-difference-between-the-subquery-and-corelated-subquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
