<?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; 2005 &#8211; CROSS APPLY</title>
	<atom:link href="http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sat, 25 May 2013 01:31:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Yashpal shah</title>
		<link>http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/#comment-199261</link>
		<dc:creator><![CDATA[Yashpal shah]]></dc:creator>
		<pubDate>Sat, 19 Nov 2011 12:25:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/#comment-199261</guid>
		<description><![CDATA[Hi Suresh.

In Simple words. an APPLY is used to join a table-valued-function with a table. APPLY are of two types: CROSS APPLY and OUTER APPLY

A CROSS APPLY is used when you want to return only those records from your table where a value is returned by your table valued function.

Whereas, an OUTER APPLY is used to return all records from your table regardless of the values returned by your table valued function.

So far, what I have understood is that it is a good to have feature and gives nice readability to your queries.
I have also read on a few internet articles that APPLY is a costly affair when compared with JOINS. I still haven&#039;t any proofs or any trusted matter which can prove that and also the advantages of using APPLY.

The only one advantage that I know about is that it helps the query execution plan to determine the correct index joins. 

Any more inputs from anybody are welcome.

Thanks,
Yashpal Shah.]]></description>
		<content:encoded><![CDATA[<p>Hi Suresh.</p>
<p>In Simple words. an APPLY is used to join a table-valued-function with a table. APPLY are of two types: CROSS APPLY and OUTER APPLY</p>
<p>A CROSS APPLY is used when you want to return only those records from your table where a value is returned by your table valued function.</p>
<p>Whereas, an OUTER APPLY is used to return all records from your table regardless of the values returned by your table valued function.</p>
<p>So far, what I have understood is that it is a good to have feature and gives nice readability to your queries.<br />
I have also read on a few internet articles that APPLY is a costly affair when compared with JOINS. I still haven&#8217;t any proofs or any trusted matter which can prove that and also the advantages of using APPLY.</p>
<p>The only one advantage that I know about is that it helps the query execution plan to determine the correct index joins. </p>
<p>Any more inputs from anybody are welcome.</p>
<p>Thanks,<br />
Yashpal Shah.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vicks</title>
		<link>http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/#comment-144113</link>
		<dc:creator><![CDATA[vicks]]></dc:creator>
		<pubDate>Mon, 27 Jun 2011 06:27:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/#comment-144113</guid>
		<description><![CDATA[hi ,
I want to update rows in a single column 1 by 1,

like sales of a company get changes then all the other variable of the column will get chgange. So i need to calculate all the rows/cells according to formula.

As we do in excel-
Ex column G
G5(Sales)=G6*G7(sales is user input from front end , it will be increased or decreased by user)
G11=G5*G10
G12=G11-G10

Something like this if g5 changes all the below cells values will be updated,

Is croos apply useful in the above scenario]]></description>
		<content:encoded><![CDATA[<p>hi ,<br />
I want to update rows in a single column 1 by 1,</p>
<p>like sales of a company get changes then all the other variable of the column will get chgange. So i need to calculate all the rows/cells according to formula.</p>
<p>As we do in excel-<br />
Ex column G<br />
G5(Sales)=G6*G7(sales is user input from front end , it will be increased or decreased by user)<br />
G11=G5*G10<br />
G12=G11-G10</p>
<p>Something like this if g5 changes all the below cells values will be updated,</p>
<p>Is croos apply useful in the above scenario</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suresh</title>
		<link>http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/#comment-84518</link>
		<dc:creator><![CDATA[Suresh]]></dc:creator>
		<pubDate>Wed, 18 Aug 2010 11:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/#comment-84518</guid>
		<description><![CDATA[Do this APPLY operator have any advantage over JOINS..??
Also Can you please explain little more details on CROSS APPLY and OUTER APPLY with Examples.

Thanks
Suresh]]></description>
		<content:encoded><![CDATA[<p>Do this APPLY operator have any advantage over JOINS..??<br />
Also Can you please explain little more details on CROSS APPLY and OUTER APPLY with Examples.</p>
<p>Thanks<br />
Suresh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshu</title>
		<link>http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/#comment-60704</link>
		<dc:creator><![CDATA[Anshu]]></dc:creator>
		<pubDate>Fri, 05 Feb 2010 10:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/#comment-60704</guid>
		<description><![CDATA[Example of Cross apply and outer apply]]></description>
		<content:encoded><![CDATA[<p>Example of Cross apply and outer apply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amol Kagde</title>
		<link>http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/#comment-33792</link>
		<dc:creator><![CDATA[Amol Kagde]]></dc:creator>
		<pubDate>Sat, 16 Feb 2008 11:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/#comment-33792</guid>
		<description><![CDATA[really fine and helpful.........


thank you!!!!!!!!!1111
.......Ak]]></description>
		<content:encoded><![CDATA[<p>really fine and helpful&#8230;&#8230;&#8230;</p>
<p>thank you!!!!!!!!!1111<br />
&#8230;&#8230;.Ak</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shashi Kant Chauhan</title>
		<link>http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/#comment-32299</link>
		<dc:creator><![CDATA[Shashi Kant Chauhan]]></dc:creator>
		<pubDate>Fri, 11 Jan 2008 15:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/04/sql-server-2005-cross-apply/#comment-32299</guid>
		<description><![CDATA[I will very thankful to you if you add the details and example of OUTER APPLY and what is the difference between CROSS APPLY and OUTER APPLY...........


Thanks &amp; Regards
Shashi Kant Chauhan]]></description>
		<content:encoded><![CDATA[<p>I will very thankful to you if you add the details and example of OUTER APPLY and what is the difference between CROSS APPLY and OUTER APPLY&#8230;&#8230;&#8230;..</p>
<p>Thanks &amp; Regards<br />
Shashi Kant Chauhan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
