<?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: How to solve the Find all 3 digit numbers have the digital sum of nine Puzzle in SQL</title>
	<atom:link href="http://oraqa.com/2008/12/18/how-to-solve-the-find-all-3-digit-numbers-have-the-digital-sum-of-nine-puzzle-in-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://oraqa.com/2008/12/18/how-to-solve-the-find-all-3-digit-numbers-have-the-digital-sum-of-nine-puzzle-in-sql/</link>
	<description>Oracle Question and Answer</description>
	<lastBuildDate>Mon, 19 Dec 2011 14:21:07 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Amalendu Pramanik</title>
		<link>http://oraqa.com/2008/12/18/how-to-solve-the-find-all-3-digit-numbers-have-the-digital-sum-of-nine-puzzle-in-sql/comment-page-1/#comment-328</link>
		<dc:creator>Amalendu Pramanik</dc:creator>
		<pubDate>Mon, 19 Dec 2011 14:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/?p=309#comment-328</guid>
		<description>
With
D As(
&#160;&#160;&#160;Select 99+RowNum N From Dual Connect By Level&lt;=(999-100)+1
)
Select *
From D
Where N&gt;=100 And N&lt;=999
And SubStr(N,1,1)+SubStr(N,2,1)+SubStr(N,3,1)=9

</description>
		<content:encoded><![CDATA[<p>With<br />
D As(<br />
&nbsp;&nbsp;&nbsp;Select 99+RowNum N From Dual Connect By Level&lt;=(999-100)+1<br />
)<br />
Select *<br />
From D<br />
Where N&gt;=100 And N&lt;=999<br />
And SubStr(N,1,1)+SubStr(N,2,1)+SubStr(N,3,1)=9</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amalendu Pramanik</title>
		<link>http://oraqa.com/2008/12/18/how-to-solve-the-find-all-3-digit-numbers-have-the-digital-sum-of-nine-puzzle-in-sql/comment-page-1/#comment-327</link>
		<dc:creator>Amalendu Pramanik</dc:creator>
		<pubDate>Mon, 19 Dec 2011 13:49:08 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/?p=309#comment-327</guid>
		<description>With
D As(
	Select 99+RowNum N From Dual Connect By Level=100 And N&lt;=999
And SubStr(N,1,1)+SubStr(N,2,1)+SubStr(N,3,1)=9</description>
		<content:encoded><![CDATA[<p>With<br />
D As(<br />
	Select 99+RowNum N From Dual Connect By Level=100 And N&lt;=999<br />
And SubStr(N,1,1)+SubStr(N,2,1)+SubStr(N,3,1)=9</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amalendu Pramanik</title>
		<link>http://oraqa.com/2008/12/18/how-to-solve-the-find-all-3-digit-numbers-have-the-digital-sum-of-nine-puzzle-in-sql/comment-page-1/#comment-326</link>
		<dc:creator>Amalendu Pramanik</dc:creator>
		<pubDate>Mon, 19 Dec 2011 13:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/?p=309#comment-326</guid>
		<description>&lt;pre&gt;

With
D As(
	Select 99+RowNum N From Dual Connect By Level=100 And N&lt;=999
And SubStr(N,1,1)+SubStr(N,2,1)+SubStr(N,3,1)=9

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre>

With
D As(
	Select 99+RowNum N From Dual Connect By Level=100 And N&lt;=999
And SubStr(N,1,1)+SubStr(N,2,1)+SubStr(N,3,1)=9
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amalendu Pramanik</title>
		<link>http://oraqa.com/2008/12/18/how-to-solve-the-find-all-3-digit-numbers-have-the-digital-sum-of-nine-puzzle-in-sql/comment-page-1/#comment-325</link>
		<dc:creator>Amalendu Pramanik</dc:creator>
		<pubDate>Mon, 19 Dec 2011 13:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/?p=309#comment-325</guid>
		<description>&lt;pre&gt;
With
D As(
	Select 99+RowNum N From Dual Connect By Level=100 And N&lt;=999
And SubStr(N,1,1)+SubStr(N,2,1)+SubStr(N,3,1)=9;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre>
With
D As(
	Select 99+RowNum N From Dual Connect By Level=100 And N&lt;=999
And SubStr(N,1,1)+SubStr(N,2,1)+SubStr(N,3,1)=9;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: cszxheap</title>
		<link>http://oraqa.com/2008/12/18/how-to-solve-the-find-all-3-digit-numbers-have-the-digital-sum-of-nine-puzzle-in-sql/comment-page-1/#comment-307</link>
		<dc:creator>cszxheap</dc:creator>
		<pubDate>Thu, 23 Dec 2010 02:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/?p=309#comment-307</guid>
		<description>--the following is my try :)

WITH DATA AS (
SELECT LTRIM(sys_connect_by_path(num,&#039;+&#039;),&#039;+&#039;) str_num,REPLACE(sys_connect_by_path(num,&#039;.&#039;),&#039;.&#039;) str_out
      FROM (SELECT LEVEL-1 num
                      FROM dual
                CONNECT BY LEVEL &lt;= 10)
 WHERE LEVEL = 3
CONNECT BY LEVEL &lt;= 3
)
SELECT s.str_out, decode(ROWNUM,1,COUNT(*) OVER(),NULL) cnt FROM DATA s
WHERE dbms_aw.eval_number(s.str_num) = 9;</description>
		<content:encoded><![CDATA[<p>&#8211;the following is my try :)</p>
<p>WITH DATA AS (<br />
SELECT LTRIM(sys_connect_by_path(num,&#8217;+'),&#8217;+') str_num,REPLACE(sys_connect_by_path(num,&#8217;.'),&#8217;.') str_out<br />
      FROM (SELECT LEVEL-1 num<br />
                      FROM dual<br />
                CONNECT BY LEVEL &lt;= 10)<br />
 WHERE LEVEL = 3<br />
CONNECT BY LEVEL &lt;= 3<br />
)<br />
SELECT s.str_out, decode(ROWNUM,1,COUNT(*) OVER(),NULL) cnt FROM DATA s<br />
WHERE dbms_aw.eval_number(s.str_num) = 9;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

