<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Correlated and Noncorrelated &#8211; SubQuery Introduction, Explanation and Example</title>
	<atom:link href="http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Wed, 17 Mar 2010 18:05:10 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marko Parkkola</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-61920</link>
		<dc:creator>Marko Parkkola</dc:creator>
		<pubDate>Sun, 28 Feb 2010 10:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-61920</guid>
		<description>I&#039;ve understood that you make the most limiting joins first. Then proceed with all the others. 

But simply test it! Write your query in different ways and measure how long they take. Check also the Execution Plan in order to find out if you need to add indexes.

But I must confess that I don&#039;t always practice what I preach. I&#039;m currently dealing with queries where I have to make many OUTER and INNER JOINs, many subqueries, groupings and calculations. I just write good enough query and if it&#039;s too slow it is caught in the tests and it&#039;s sent back to me, and then I try to optimize it.

I&#039;m getting lazy :(</description>
		<content:encoded><![CDATA[<p>I&#8217;ve understood that you make the most limiting joins first. Then proceed with all the others. </p>
<p>But simply test it! Write your query in different ways and measure how long they take. Check also the Execution Plan in order to find out if you need to add indexes.</p>
<p>But I must confess that I don&#8217;t always practice what I preach. I&#8217;m currently dealing with queries where I have to make many OUTER and INNER JOINs, many subqueries, groupings and calculations. I just write good enough query and if it&#8217;s too slow it is caught in the tests and it&#8217;s sent back to me, and then I try to optimize it.</p>
<p>I&#8217;m getting lazy :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praveen</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-61906</link>
		<dc:creator>Praveen</dc:creator>
		<pubDate>Sun, 28 Feb 2010 00:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-61906</guid>
		<description>Actually if you can post something on order of joins to be followed when working with ..say 5 to 10 tables, it will be great. as the joins increase then how should be order of table to be appearing in join.</description>
		<content:encoded><![CDATA[<p>Actually if you can post something on order of joins to be followed when working with ..say 5 to 10 tables, it will be great. as the joins increase then how should be order of table to be appearing in join.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praveen</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-61905</link>
		<dc:creator>Praveen</dc:creator>
		<pubDate>Sun, 28 Feb 2010 00:48:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-61905</guid>
		<description>Good one, you are making life simpler for lots of them out here. congrats.</description>
		<content:encoded><![CDATA[<p>Good one, you are making life simpler for lots of them out here. congrats.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-61412</link>
		<dc:creator>Pinal Dave</dc:creator>
		<pubDate>Thu, 18 Feb 2010 11:16:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-61412</guid>
		<description>Hello Pawan,

The values of two columns can be swapped using simple update statement like:

UPDATE tblTable 
SET col1 = col2, 
col2 = col1

Regards,
Pinal Dave</description>
		<content:encoded><![CDATA[<p>Hello Pawan,</p>
<p>The values of two columns can be swapped using simple update statement like:</p>
<p>UPDATE tblTable<br />
SET col1 = col2,<br />
col2 = col1</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pawan</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-61373</link>
		<dc:creator>pawan</dc:creator>
		<pubDate>Wed, 17 Feb 2010 16:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-61373</guid>
		<description>hello pinal,
Wish you all happiness. I too read your articles, It is very good.

pinal please give me the solution of this question.

suppose we have a table and two columns ........
Now the question is we have to interchange the values of 
this columns using single query.

please suggest the solution ,


thanks and regards
pawan</description>
		<content:encoded><![CDATA[<p>hello pinal,<br />
Wish you all happiness. I too read your articles, It is very good.</p>
<p>pinal please give me the solution of this question.</p>
<p>suppose we have a table and two columns &#8230;&#8230;..<br />
Now the question is we have to interchange the values of<br />
this columns using single query.</p>
<p>please suggest the solution ,</p>
<p>thanks and regards<br />
pawan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chintan</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-60637</link>
		<dc:creator>Chintan</dc:creator>
		<pubDate>Thu, 04 Feb 2010 05:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-60637</guid>
		<description>Good article...Dave

keep posting

Regards,
Chintan, Bangalore</description>
		<content:encoded><![CDATA[<p>Good article&#8230;Dave</p>
<p>keep posting</p>
<p>Regards,<br />
Chintan, Bangalore</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: riaz mohamed</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-57176</link>
		<dc:creator>riaz mohamed</dc:creator>
		<pubDate>Fri, 30 Oct 2009 12:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-57176</guid>
		<description>hi brother.... i am studying sql. Can i get solved subqueries tutorial.</description>
		<content:encoded><![CDATA[<p>hi brother&#8230;. i am studying sql. Can i get solved subqueries tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vidya</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-56743</link>
		<dc:creator>vidya</dc:creator>
		<pubDate>Fri, 16 Oct 2009 03:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-56743</guid>
		<description>i want some full material about SQLSERVER 2005</description>
		<content:encoded><![CDATA[<p>i want some full material about SQLSERVER 2005</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: katheesh kumar</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-51920</link>
		<dc:creator>katheesh kumar</dc:creator>
		<pubDate>Fri, 15 May 2009 12:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-51920</guid>
		<description>anyone who sees this site should improve his knowledge on sql fine work and it should be praised!</description>
		<content:encoded><![CDATA[<p>anyone who sees this site should improve his knowledge on sql fine work and it should be praised!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - 2008 - Interview Questions and Answers - Part 2 Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-42749</link>
		<dc:creator>SQL SERVER - 2008 - Interview Questions and Answers - Part 2 Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Sat, 13 Sep 2008 01:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-42749</guid>
		<description>[...] 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. (Read More Here) [...]</description>
		<content:encoded><![CDATA[<p>[...] 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. (Read More Here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swapnil Mohod</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-25580</link>
		<dc:creator>Swapnil Mohod</dc:creator>
		<pubDate>Wed, 12 Dec 2007 17:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-25580</guid>
		<description>As per books available in the market,it says
DELETE table can be ROLLBACK while
TRUNCATE table CANNOT be ROLLBACK,
But it is paractically wrong,Both can be roll back...
Then why this is so...............</description>
		<content:encoded><![CDATA[<p>As per books available in the market,it says<br />
DELETE table can be ROLLBACK while<br />
TRUNCATE table CANNOT be ROLLBACK,<br />
But it is paractically wrong,Both can be roll back&#8230;<br />
Then why this is so&#8230;&#8230;&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swapnil Mohod</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-22097</link>
		<dc:creator>Swapnil Mohod</dc:creator>
		<pubDate>Fri, 23 Nov 2007 12:08:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-22097</guid>
		<description>Good One....</description>
		<content:encoded><![CDATA[<p>Good One&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chanti</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-14123</link>
		<dc:creator>chanti</dc:creator>
		<pubDate>Tue, 25 Sep 2007 20:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-14123</guid>
		<description>Hi Aavesh,

rowlock is Record wise lock on data.
NoLock is for Object which will not lock any records &amp; whick is not applicable to DML commands like insert, update &amp; Delete commands


Thanks,
Chanti</description>
		<content:encoded><![CDATA[<p>Hi Aavesh,</p>
<p>rowlock is Record wise lock on data.<br />
NoLock is for Object which will not lock any records &amp; whick is not applicable to DML commands like insert, update &amp; Delete commands</p>
<p>Thanks,<br />
Chanti</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aavesh Agarwal</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-13756</link>
		<dc:creator>Aavesh Agarwal</dc:creator>
		<pubDate>Sun, 23 Sep 2007 15:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-13756</guid>
		<description>Hello Dave,

Your site is really nice.can u send me those queries which generally asked in Interviews.I really need it.and more question What is the difference between rowLock and NO Lock.

Thanks and Regards 
Aavesh Agarwal</description>
		<content:encoded><![CDATA[<p>Hello Dave,</p>
<p>Your site is really nice.can u send me those queries which generally asked in Interviews.I really need it.and more question What is the difference between rowLock and NO Lock.</p>
<p>Thanks and Regards<br />
Aavesh Agarwal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaviarasu</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-13716</link>
		<dc:creator>kaviarasu</dc:creator>
		<pubDate>Sun, 23 Sep 2007 08:51:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-13716</guid>
		<description>I am kaviarasu.I am learning Oracle DBA and i am going to write the certification.Could you sed me the Oracle SQL questions to the above e-mail id.</description>
		<content:encoded><![CDATA[<p>I am kaviarasu.I am learning Oracle DBA and i am going to write the certification.Could you sed me the Oracle SQL questions to the above e-mail id.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: T.Manikumar</title>
		<link>http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-11716</link>
		<dc:creator>T.Manikumar</dc:creator>
		<pubDate>Sat, 08 Sep 2007 07:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/07/sql-server-correlated-and-noncorrelated-subquery-introduction-explanation-and-example/#comment-11716</guid>
		<description>Sir,
     I saw your website its really super it very help full to beginners and improve our knowledge this website because it can easily to understand them.

I have lots of doutes in the sql server pls send to my mail -id daily some tips and tricks in sql server sir.

Thanks,
T.Manikumar</description>
		<content:encoded><![CDATA[<p>Sir,<br />
     I saw your website its really super it very help full to beginners and improve our knowledge this website because it can easily to understand them.</p>
<p>I have lots of doutes in the sql server pls send to my mail -id daily some tips and tricks in sql server sir.</p>
<p>Thanks,<br />
T.Manikumar</p>
]]></content:encoded>
	</item>
</channel>
</rss>
