<?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 – SELF JOIN Not Allowed in Indexed View – Limitation of the View 9</title>
	<atom:link href="http://blog.sqlauthority.com/2010/09/26/sql-server-self-join-not-allowed-in-indexed-view-limitation-of-the-view-9/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2010/09/26/sql-server-self-join-not-allowed-in-indexed-view-limitation-of-the-view-9/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 24 May 2013 22:47:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Jesús Muela</title>
		<link>http://blog.sqlauthority.com/2010/09/26/sql-server-self-join-not-allowed-in-indexed-view-limitation-of-the-view-9/#comment-418550</link>
		<dc:creator><![CDATA[Jesús Muela]]></dc:creator>
		<pubDate>Wed, 06 Feb 2013 11:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10322#comment-418550</guid>
		<description><![CDATA[Imagine you have a view with this syntax:

SELECT InitDateTable.date_id AS init_date_id
,EndDateTable.date_id AS end_date_id
FROM myschema.mytable MyTable
INNER
JOIN myschema.mydatestable InitDateTable
ON InitDateTable.date = MyTable.init_date
INNER
JOIN myschema.mydatestable EndDateTable
ON EndDateTable.date = MyTable.end_date

You can’t create index because it tells you this view contains a self join, but this isn’t true because it is accesing the same table two times for two separate fields. This is not a SELF JOIN but it tells you it is.

Is it any way to do this?]]></description>
		<content:encoded><![CDATA[<p>Imagine you have a view with this syntax:</p>
<p>SELECT InitDateTable.date_id AS init_date_id<br />
,EndDateTable.date_id AS end_date_id<br />
FROM myschema.mytable MyTable<br />
INNER<br />
JOIN myschema.mydatestable InitDateTable<br />
ON InitDateTable.date = MyTable.init_date<br />
INNER<br />
JOIN myschema.mydatestable EndDateTable<br />
ON EndDateTable.date = MyTable.end_date</p>
<p>You can’t create index because it tells you this view contains a self join, but this isn’t true because it is accesing the same table two times for two separate fields. This is not a SELF JOIN but it tells you it is.</p>
<p>Is it any way to do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesús Muela</title>
		<link>http://blog.sqlauthority.com/2010/09/26/sql-server-self-join-not-allowed-in-indexed-view-limitation-of-the-view-9/#comment-418549</link>
		<dc:creator><![CDATA[Jesús Muela]]></dc:creator>
		<pubDate>Wed, 06 Feb 2013 11:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10322#comment-418549</guid>
		<description><![CDATA[Imagine you have a view with this syntax:

SELECT InitDateTable.date_id AS init_date_id
      ,EndDateTable.date_id AS end_date_id
  FROM myschema.mytable MyTable
 INNER
  JOIN myschema.mydatestable InitDateTable
    ON InitDateTable.date = MyTable.init_date
 INNER
  JOIN myschema.mydatestable EndDateTable
    ON EndDateTable.date = MyTable.end_date

You can’t create index because it tells you this view contains a self join, but this isn’t true because it is accesing the same table two times for two separate fields. This is not a SELF JOIN but it tells you it is.

Is it any way to do this?]]></description>
		<content:encoded><![CDATA[<p>Imagine you have a view with this syntax:</p>
<p>SELECT InitDateTable.date_id AS init_date_id<br />
      ,EndDateTable.date_id AS end_date_id<br />
  FROM myschema.mytable MyTable<br />
 INNER<br />
  JOIN myschema.mydatestable InitDateTable<br />
    ON InitDateTable.date = MyTable.init_date<br />
 INNER<br />
  JOIN myschema.mydatestable EndDateTable<br />
    ON EndDateTable.date = MyTable.end_date</p>
<p>You can’t create index because it tells you this view contains a self join, but this isn’t true because it is accesing the same table two times for two separate fields. This is not a SELF JOIN but it tells you it is.</p>
<p>Is it any way to do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #008 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2010/09/26/sql-server-self-join-not-allowed-in-indexed-view-limitation-of-the-view-9/#comment-397401</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #008 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 22 Dec 2012 01:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10322#comment-397401</guid>
		<description><![CDATA[[...] SELF JOIN Not Allowed in Indexed View – Limitation of the View 9 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SELF JOIN Not Allowed in Indexed View – Limitation of the View 9 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dima</title>
		<link>http://blog.sqlauthority.com/2010/09/26/sql-server-self-join-not-allowed-in-indexed-view-limitation-of-the-view-9/#comment-308835</link>
		<dc:creator><![CDATA[Dima]]></dc:creator>
		<pubDate>Tue, 03 Jul 2012 13:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10322#comment-308835</guid>
		<description><![CDATA[Hi, Pinal

I belive - this limitation will be eliminated in next version of SQL Server, probably - with usage of special join hint (self join executed exactly as inner join). 
From architectural point - that happens when attempt to implement generic solution for complex case with far functional dependencies. 
From logical point it might be solved as following:
- specify join hint to eliminate the cause of limitation 
- give query analyzer more smart to use only INNER join if the view is indexed]]></description>
		<content:encoded><![CDATA[<p>Hi, Pinal</p>
<p>I belive &#8211; this limitation will be eliminated in next version of SQL Server, probably &#8211; with usage of special join hint (self join executed exactly as inner join).<br />
From architectural point &#8211; that happens when attempt to implement generic solution for complex case with far functional dependencies.<br />
From logical point it might be solved as following:<br />
- specify join hint to eliminate the cause of limitation<br />
- give query analyzer more smart to use only INNER join if the view is indexed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Indexed Views and Restrictions &#8211; Quiz &#8211; Puzzle &#8211; 7 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2010/09/26/sql-server-self-join-not-allowed-in-indexed-view-limitation-of-the-view-9/#comment-233264</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Indexed Views and Restrictions &#8211; Quiz &#8211; Puzzle &#8211; 7 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sun, 08 Jan 2012 01:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10322#comment-233264</guid>
		<description><![CDATA[[...] of the View 8  Cross Database Queries Not Allowed in Indexed View – Limitation of the View 7  SELF JOIN Not Allowed in Indexed View – Limitation of the View 9  UNION Not Allowed but OR Allowed in Index View – Limitation of the View 6  Keywords View [...]]]></description>
		<content:encoded><![CDATA[<p>[...] of the View 8  Cross Database Queries Not Allowed in Indexed View – Limitation of the View 7  SELF JOIN Not Allowed in Indexed View – Limitation of the View 9  UNION Not Allowed but OR Allowed in Index View – Limitation of the View 6  Keywords View [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Data Warehouseing Concepts – Day 20 of 31 Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2010/09/26/sql-server-self-join-not-allowed-in-indexed-view-limitation-of-the-view-9/#comment-149467</link>
		<dc:creator><![CDATA[SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Data Warehouseing Concepts – Day 20 of 31 Journey to SQLAuthority]]></dc:creator>
		<pubDate>Wed, 20 Jul 2011 01:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10322#comment-149467</guid>
		<description><![CDATA[[...] (Read more here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] (Read more here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit Govil</title>
		<link>http://blog.sqlauthority.com/2010/09/26/sql-server-self-join-not-allowed-in-indexed-view-limitation-of-the-view-9/#comment-89785</link>
		<dc:creator><![CDATA[Amit Govil]]></dc:creator>
		<pubDate>Mon, 27 Sep 2010 18:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10322#comment-89785</guid>
		<description><![CDATA[Sir,

Please don&#039;t take it otherwise but we are bored of these limitations. Please change the topic. 

Regards,
Amit]]></description>
		<content:encoded><![CDATA[<p>Sir,</p>
<p>Please don&#8217;t take it otherwise but we are bored of these limitations. Please change the topic. </p>
<p>Regards,<br />
Amit</p>
]]></content:encoded>
	</item>
</channel>
</rss>
