<?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: Advance SQL Query &#8211; Convert single cell of table into multiple Rows	</title>
	<atom:link href="https://www.dbrnd.com/2017/06/sql-puzzle-advance-sql-query-convert-single-cell-of-table-into-multiple-rows/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2017/06/sql-puzzle-advance-sql-query-convert-single-cell-of-table-into-multiple-rows/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Wed, 23 Oct 2019 03:44:23 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: Andrius		</title>
		<link>https://www.dbrnd.com/2017/06/sql-puzzle-advance-sql-query-convert-single-cell-of-table-into-multiple-rows/#comment-7828</link>

		<dc:creator><![CDATA[Andrius]]></dc:creator>
		<pubDate>Wed, 23 Oct 2019 03:44:23 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5407#comment-7828</guid>

					<description><![CDATA[Postgres:
SELECT regexp_split_to_table(&#039;aBCDe14885&#039;, &#039;&#039;);]]></description>
			<content:encoded><![CDATA[<p>Postgres:<br />
SELECT regexp_split_to_table(&#8216;aBCDe14885&#8217;, &#8221;);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dinesh		</title>
		<link>https://www.dbrnd.com/2017/06/sql-puzzle-advance-sql-query-convert-single-cell-of-table-into-multiple-rows/#comment-5672</link>

		<dc:creator><![CDATA[Dinesh]]></dc:creator>
		<pubDate>Thu, 15 Jun 2017 09:38:47 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5407#comment-5672</guid>

					<description><![CDATA[Hi Sir
 
   I tried this below methods

--Method-1
DECLARE @Var VARCHAR(10) = &#039;aBCDe14885&#039;
Declare @TableResult Table(Value VarChar(50));
Declare @Len Int,@Cnt As Int
Set @Cnt=0
While Len(@Var)&gt;0
Begin
           
           
            Insert Into @TableResult
            Values(SubString(@Var,1,1))
           
            Set @Var=Right(@Var,Len(@Var)-1)
           
           
End
Select * From @TableResult
 
GO
--Method-2
Declare @Var VarChar(10)=&#039;aBCDe14885&#039;
Declare @TableResult Table(Value VarChar(50));
Declare @Len Int,@Cnt Int
Set @Cnt=1
Set @Len=Len(@Var)
While (1=1)
Begin
     
        If @Cnt&gt;@Len
        Begin
                  Break;
        End
        Else
        Begin
            Insert Into @TableResult
            Values(SubString(@Var,@Cnt,1))
            Set @Cnt=@Cnt+1
        End
End
Select * From @TableResult
GO
 
Regards
Dinesh.]]></description>
			<content:encoded><![CDATA[<p>Hi Sir</p>
<p>   I tried this below methods</p>
<p>&#8211;Method-1<br />
DECLARE @Var VARCHAR(10) = &#8216;aBCDe14885&#8242;<br />
Declare @TableResult Table(Value VarChar(50));<br />
Declare @Len Int,@Cnt As Int<br />
Set @Cnt=0<br />
While Len(@Var)>0<br />
Begin</p>
<p>            Insert Into @TableResult<br />
            Values(SubString(@Var,1,1))</p>
<p>            Set @Var=Right(@Var,Len(@Var)-1)</p>
<p>End<br />
Select * From @TableResult</p>
<p>GO<br />
&#8211;Method-2<br />
Declare @Var VarChar(10)=&#8217;aBCDe14885&#8217;<br />
Declare @TableResult Table(Value VarChar(50));<br />
Declare @Len Int,@Cnt Int<br />
Set @Cnt=1<br />
Set @Len=Len(@Var)<br />
While (1=1)<br />
Begin</p>
<p>        If @Cnt>@Len<br />
        Begin<br />
                  Break;<br />
        End<br />
        Else<br />
        Begin<br />
            Insert Into @TableResult<br />
            Values(SubString(@Var,@Cnt,1))<br />
            Set @Cnt=@Cnt+1<br />
        End<br />
End<br />
Select * From @TableResult<br />
GO</p>
<p>Regards<br />
Dinesh.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
