<?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/"
	
	>
<channel>
	<title>
	Comments on: SSIS Lookup transformation in T-SQL	</title>
	<atom:link href="https://lobsterpot.com.au/blog/2014/07/08/ssis-lookup-transformation-in-t-sql/feed/" rel="self" type="application/rss+xml" />
	<link>https://lobsterpot.com.au/blog/2014/07/08/ssis-lookup-transformation-in-t-sql/</link>
	<description></description>
	<lastBuildDate>Tue, 11 Aug 2020 03:49:59 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>
	<item>
		<title>
		By: SQL Community time capsule - LobsterPot Blogs		</title>
		<link>https://lobsterpot.com.au/blog/2014/07/08/ssis-lookup-transformation-in-t-sql/#comment-2480</link>

		<dc:creator><![CDATA[SQL Community time capsule - LobsterPot Blogs]]></dc:creator>
		<pubDate>Tue, 11 Aug 2020 03:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.lobsterpot.com.au/?p=3344#comment-2480</guid>

					<description><![CDATA[[&#8230;] had to think about this one. As much as I like the double OUTER APPLY (SELECT TOP (1)&#8230;) thing that I do, especially for protecting my base tables in warehouse loads, I&#039;m not about to [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] had to think about this one. As much as I like the double OUTER APPLY (SELECT TOP (1)&#8230;) thing that I do, especially for protecting my base tables in warehouse loads, I&#039;m not about to [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: What were you thinking, Rob? - LobsterPot Blogs		</title>
		<link>https://lobsterpot.com.au/blog/2014/07/08/ssis-lookup-transformation-in-t-sql/#comment-2479</link>

		<dc:creator><![CDATA[What were you thinking, Rob? - LobsterPot Blogs]]></dc:creator>
		<pubDate>Tue, 12 Nov 2019 02:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.lobsterpot.com.au/?p=3344#comment-2479</guid>

					<description><![CDATA[[&#8230;] grouping by a column that isn&#8217;t in the SELECT clause, providing an inverted predicate, doing a double OUTER APPLY (SELECT TOP (1)…), or even providing a table or join hint. I might hope I know what I&#8217;m doing, but I also want [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] grouping by a column that isn&#8217;t in the SELECT clause, providing an inverted predicate, doing a double OUTER APPLY (SELECT TOP (1)…), or even providing a table or join hint. I might hope I know what I&#8217;m doing, but I also want [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rob Farley		</title>
		<link>https://lobsterpot.com.au/blog/2014/07/08/ssis-lookup-transformation-in-t-sql/#comment-2478</link>

		<dc:creator><![CDATA[Rob Farley]]></dc:creator>
		<pubDate>Fri, 22 May 2015 04:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.lobsterpot.com.au/?p=3344#comment-2478</guid>

					<description><![CDATA[That&#039;s great, Tarek! :)]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s great, Tarek! 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tarek		</title>
		<link>https://lobsterpot.com.au/blog/2014/07/08/ssis-lookup-transformation-in-t-sql/#comment-2477</link>

		<dc:creator><![CDATA[Tarek]]></dc:creator>
		<pubDate>Fri, 22 May 2015 03:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.lobsterpot.com.au/?p=3344#comment-2477</guid>

					<description><![CDATA[Hi Rob,
your post helped me a hell lot. I was trying to solve a similar scenario where I wanted to build a parent child table structure and I only knew that the parent is the next of the preceding elements in the list with HierarchyLevel-1. By changing the join that I made first your APPLY statement and constraining my resultset to TOP 1 DESC, I obtained exactly my desired result. Otherwise, by use of a common join I would have gotten as much duplicate rows as much rows of lower level were found in the list before.
Thanks a lot!
Best regards,
Tarek]]></description>
			<content:encoded><![CDATA[<p>Hi Rob,<br />
your post helped me a hell lot. I was trying to solve a similar scenario where I wanted to build a parent child table structure and I only knew that the parent is the next of the preceding elements in the list with HierarchyLevel-1. By changing the join that I made first your APPLY statement and constraining my resultset to TOP 1 DESC, I obtained exactly my desired result. Otherwise, by use of a common join I would have gotten as much duplicate rows as much rows of lower level were found in the list before.<br />
Thanks a lot!<br />
Best regards,<br />
Tarek</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rob Farley		</title>
		<link>https://lobsterpot.com.au/blog/2014/07/08/ssis-lookup-transformation-in-t-sql/#comment-2476</link>

		<dc:creator><![CDATA[Rob Farley]]></dc:creator>
		<pubDate>Wed, 16 Jul 2014 12:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.lobsterpot.com.au/?p=3344#comment-2476</guid>

					<description><![CDATA[Hi Surjit,
The first predicate is on the set d1, which is reflected in the Startup Filter. It means it only does this lookup if the first one (d1) has failed to find something.
The second predicate is on the tables d and f, and is used to find the record in the dimension table.
Does this help?
Rob]]></description>
			<content:encoded><![CDATA[<p>Hi Surjit,<br />
The first predicate is on the set d1, which is reflected in the Startup Filter. It means it only does this lookup if the first one (d1) has failed to find something.<br />
The second predicate is on the tables d and f, and is used to find the record in the dimension table.<br />
Does this help?<br />
Rob</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Surjit		</title>
		<link>https://lobsterpot.com.au/blog/2014/07/08/ssis-lookup-transformation-in-t-sql/#comment-2475</link>

		<dc:creator><![CDATA[Surjit]]></dc:creator>
		<pubDate>Wed, 16 Jul 2014 11:51:48 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.lobsterpot.com.au/?p=3344#comment-2475</guid>

					<description><![CDATA[Hi,
I had below doubt on second outer apply
 &#160;When there is condition d1.BusinessKey IS NULL
 &#160;How can this cindition execute &#034;AND d.BusinessKey = f.DimBK &#034;
Thanks,
Surjit]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
I had below doubt on second outer apply<br />
 &nbsp;When there is condition d1.BusinessKey IS NULL<br />
 &nbsp;How can this cindition execute &quot;AND d.BusinessKey = f.DimBK &quot;<br />
Thanks,<br />
Surjit</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
