﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 7,2000 / SQL Server Newbies  / Order by for Ratio Dataset / 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>Sat, 25 May 2013 18:30:52 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Order by for Ratio Dataset</title><link>http://www.sqlservercentral.com/Forums/Topic782130-169-1.aspx</link><description>These have to be coming back as characters. Therefore they'll be ordered as characters.20:1:1comes before 20:2:5No matter what the math, these are ordered by characters. If you have some rules, you could use charindex and substring to strip out the individual numbers and possibly find a way to order them, but the rules for reducing these to the lowest values would be complex.Again, if you develop the rules that you need for ordering these, we might be able to help.</description><pubDate>Thu, 03 Sep 2009 09:30:26 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: Order by for Ratio Dataset</title><link>http://www.sqlservercentral.com/Forums/Topic782130-169-1.aspx</link><description>hii am having ratio values as output from proc for example (20:2:1)i want arrange this values in ascending order or in descending order</description><pubDate>Thu, 03 Sep 2009 09:22:47 GMT</pubDate><dc:creator>akilamm</dc:creator></item><item><title>RE: Order by for Ratio Dataset</title><link>http://www.sqlservercentral.com/Forums/Topic782130-169-1.aspx</link><description>I'm not sure what I'm looking at here. What are the data types? Is the ratio a char field? If so, then it is ordered as characters.What ordering are you trying to get, or what are the rules for ordering your ratios?</description><pubDate>Thu, 03 Sep 2009 09:09:53 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>Order by for Ratio Dataset</title><link>http://www.sqlservercentral.com/Forums/Topic782130-169-1.aspx</link><description>Hii am trying to arrange ratio dataset in ascending orderexample dataset looks like this50302136	120:0:7:450303835	194:0:9:650302786	249:0:14:750302640	37:0:2:050303753	382:0:7:150302137	59:0:10:0i tried with order by ,it is not working is there any solution to arrange data in ascending order</description><pubDate>Thu, 03 Sep 2009 07:10:27 GMT</pubDate><dc:creator>akilamm</dc:creator></item></channel></rss>