<?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: SQL Puzzle: SQL Advance Query &#8211; Fill the gap of Missing Codes	</title>
	<atom:link href="https://www.dbrnd.com/2017/11/sql-puzzle-sql-advance-query-fill-the-gap-of-missing-codes/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2017/11/sql-puzzle-sql-advance-query-fill-the-gap-of-missing-codes/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Sun, 18 Aug 2019 08:35:03 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: Phanindra Suripeddi		</title>
		<link>https://www.dbrnd.com/2017/11/sql-puzzle-sql-advance-query-fill-the-gap-of-missing-codes/#comment-7695</link>

		<dc:creator><![CDATA[Phanindra Suripeddi]]></dc:creator>
		<pubDate>Sun, 18 Aug 2019 08:35:03 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5855#comment-7695</guid>

					<description><![CDATA[;With T As
(
	Select Row_Number() Over(Order by (select null)) RNo1 ,Code From MissingData 
)
Select code, IIF(isnull(a.code,&#039;&#039;)!=&#039;&#039;, a.code, (select Top 1 b.code from T b where b.RNo1&#060;a.RNo1 and b.code Is not null Order by b.code desc)) NewCode  From T a]]></description>
			<content:encoded><![CDATA[<p>;With T As<br />
(<br />
	Select Row_Number() Over(Order by (select null)) RNo1 ,Code From MissingData<br />
)<br />
Select code, IIF(isnull(a.code,&#8221;)!=&#8221;, a.code, (select Top 1 b.code from T b where b.RNo1&lt;a.RNo1 and b.code Is not null Order by b.code desc)) NewCode  From T a</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: psuripeddi		</title>
		<link>https://www.dbrnd.com/2017/11/sql-puzzle-sql-advance-query-fill-the-gap-of-missing-codes/#comment-7694</link>

		<dc:creator><![CDATA[psuripeddi]]></dc:creator>
		<pubDate>Sun, 18 Aug 2019 08:33:22 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5855#comment-7694</guid>

					<description><![CDATA[;With T As
(
	Select Row_Number() Over(Order by (select null)) RNo1 ,Code From MissingData 
)
Select code, IIF(isnull(a.code,&#039;&#039;)!=&#039;&#039;, a.code, (select Top 1 b.code from T b where b.RNo1&#060;a.RNo1 and b.code Is not null Order by b.code desc)) NewCode  From T a]]></description>
			<content:encoded><![CDATA[<p>;With T As<br />
(<br />
	Select Row_Number() Over(Order by (select null)) RNo1 ,Code From MissingData<br />
)<br />
Select code, IIF(isnull(a.code,&#8221;)!=&#8221;, a.code, (select Top 1 b.code from T b where b.RNo1&lt;a.RNo1 and b.code Is not null Order by b.code desc)) NewCode  From T a</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
