﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Jacob Sebastian / Article Discussions / Article Discussions by Author  / TSQL Challenge 51 - Convert long Binary strings to Decimal strings / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 18:15:29 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: TSQL Challenge 51 - Convert long Binary strings to Decimal strings</title><link>http://www.sqlservercentral.com/Forums/Topic1073966-356-1.aspx</link><description>Most people submit their solutions in the first two weeks after the challenge is published. The evaluation then might take another 2-4 weeks to complete. The solutions will be available publicly after the evaluation is completed. I would encourage you to go to [url=http://beyondrelational.com/puzzles/sqlserver/tsql/51/submit.aspx]http://beyondrelational.com/puzzles/sqlserver/tsql/51/submit.aspx[/url] and submit your solution.</description><pubDate>Mon, 07 Mar 2011 08:51:13 GMT</pubDate><dc:creator>jacob sebastian</dc:creator></item><item><title>RE: TSQL Challenge 51 - Convert long Binary strings to Decimal strings</title><link>http://www.sqlservercentral.com/Forums/Topic1073966-356-1.aspx</link><description>Not able to reach the site with the link provided the Site. The answer could be ;WITH CTEAS(	SELECT SEQ, BINARYVALUE, 0 AS EXPO, CONVERT(NVARCHAR(4000),RIGHT(BINARYVALUE,1)) REMAINING	, CONVERT(NVARCHAR(4000),LEFT(BINARYVALUE,LEN(BINARYVALUE) - 1)) DEDUCTIBLE	FROM TC51		UNION ALL		SELECT SEQ, BINARYVALUE, EXPO + 1, CONVERT(NVARCHAR(4000),RIGHT(DEDUCTIBLE,1))	 ,CONVERT(NVARCHAR(4000),LEFT(DEDUCTIBLE,LEN(DEDUCTIBLE) - CASE WHEN LEN(DEDUCTIBLE) &amp;gt; 0 THEN 1 ELSE  0 END )) DEDUCTIBLE	 	FROM CTE	WHERE LEN(DEDUCTIBLE) &amp;gt; 0)sELECT SUM(remaining * power(CONVERT(NUMERIC(18,0),2),expo)),seq, binaryvalueFROM CTEgroup by seq, binaryvalueorder by seq, binaryvalueIf there is any better method, please let me know how can I view it?</description><pubDate>Mon, 07 Mar 2011 08:03:36 GMT</pubDate><dc:creator>sample1</dc:creator></item><item><title>TSQL Challenge 51 - Convert long Binary strings to Decimal strings</title><link>http://www.sqlservercentral.com/Forums/Topic1073966-356-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/T-SQL+Challenges/72253/"&gt;TSQL Challenge 51 - Convert long Binary strings to Decimal strings&lt;/A&gt;[/B]</description><pubDate>Mon, 07 Mar 2011 00:05:16 GMT</pubDate><dc:creator>jacob sebastian</dc:creator></item></channel></rss>