<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title>Mysql Descending / Ascending order in Webmasters and Developers</title>
<link>http://www.dslreports.com/forum/r20423587</link>
<description></description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 22:36:28 EDT</pubDate>
<lastBuildDate>Tue, 02 Dec 2008 22:36:28 EDT</lastBuildDate>

<item>
<title>Re: Mysql Descending / Ascending order</title>
<link>http://www.dslreports.com/forum/remark,20428208</link>
<description><![CDATA[<A HREF="/useremail/u/274243"><b>GILXA1226</b></A> : <div class="bquote"><small>said by  PetePuma <A HREF="/useremail/u/644121"><IMG SRC="http://i.dslr.net/bb/profile.gif" ALT="See Profile" BORDER=0 WIDTH=16 HEIGHT=11></A> :</small><br><br>Agreed.  Generally, I avoid the numeric syntax except with odd computed columns.<br> </div>You really shouldn't have to do it then, unless whatever database you are using doesn't support column aliasing.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20428208</guid>
<pubDate>Sat, 03 May 2008 22:29:14 EDT</pubDate>
</item>

<item>
<title>Re: Mysql Descending / Ascending order</title>
<link>http://www.dslreports.com/forum/remark,20428145</link>
<description><![CDATA[<A HREF="/useremail/u/644121"><b>PetePuma</b></A> : <div class="bquote"><small>said by  GILXA1226 <A HREF="/useremail/u/274243"><IMG SRC="http://i.dslr.net/bb/profile.gif" ALT="See Profile" BORDER=0 WIDTH=16 HEIGHT=11></A> :</small><br><br>Yes, you can use numbers, however it's always better to use the actual column names.  One good reason is, it makes the query easier to read, the other good reason is that is lessens the chance of the query breaking if in a week, month, year, you add another column into the select statement that changes what the number(s) is/are of the column(s) you were sorting by.<br><br>just my $0.02.<br> </div>Agreed.  Generally, I avoid the numeric syntax except with odd computed columns.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20428145</guid>
<pubDate>Sat, 03 May 2008 22:17:07 EDT</pubDate>
</item>

<item>
<title>Re: Mysql Descending / Ascending order</title>
<link>http://www.dslreports.com/forum/remark,20428074</link>
<description><![CDATA[<A HREF="/useremail/u/274243"><b>GILXA1226</b></A> : <div class="bquote"><small>said by  dk1983 <A HREF="/useremail/u/888626"><IMG SRC="http://i.dslr.net/bb/profile.gif" ALT="See Profile" BORDER=0 WIDTH=16 HEIGHT=11></A> :</small><br><br>WOW well Ill be!!! :D<br><br>You can use numbers for the column to sort by?? The things you learn just by asking :)<br><br>Thank you Pete<br> </div>Yes, you can use numbers, however it's always better to use the actual column names.  One good reason is, it makes the query easier to read, the other good reason is that is lessens the chance of the query breaking if in a week, month, year, you add another column into the select statement that changes what the number(s) is/are of the column(s) you were sorting by.<br><br>just my $0.02.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20428074</guid>
<pubDate>Sat, 03 May 2008 21:59:52 EDT</pubDate>
</item>

<item>
<title>Re: Mysql Descending / Ascending order</title>
<link>http://www.dslreports.com/forum/remark,20425533</link>
<description><![CDATA[<A HREF="/useremail/u/1350120"><b>Graycode</b></A> : <div class="bquote"><small>said by  dk1983 <A HREF="/useremail/u/888626"><IMG SRC="http://i.dslr.net/bb/profile.gif" ALT="See Profile" BORDER=0 WIDTH=16 HEIGHT=11></A> :</small><br><br>... is it possible to run a query based on the results of another query?<br> </div>Subselects and also a FROM clause may be a select too.  Some examples of that are in: &raquo;<A HREF="/forum/r20356546-SQL-How-to-Count-when-theres-no-distinct-column">[SQL] How to Count() when there's no distinct column</A>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20425533</guid>
<pubDate>Sat, 03 May 2008 11:23:08 EDT</pubDate>
</item>

<item>
<title>Re: Mysql Descending / Ascending order</title>
<link>http://www.dslreports.com/forum/remark,20424652</link>
<description><![CDATA[<A HREF="/useremail/u/449413"><b>jayco437</b></A> : It's possible, try reading up on subselects.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20424652</guid>
<pubDate>Sat, 03 May 2008 02:44:09 EDT</pubDate>
</item>

<item>
<title>Re: Mysql Descending / Ascending order</title>
<link>http://www.dslreports.com/forum/remark,20424267</link>
<description><![CDATA[<A HREF="/useremail/u/888626"><b>dk1983</b></A> : Guys I have another question, is it possible to run a query based on the results of another query?<br><br>For example I do a <br><br><textarea name="code" class="text" cols=50 rows=10>Select * from table where lupdate = curdate();&#012;</textarea><!--end code block--><br>Then search withing those results?<br>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20424267</guid>
<pubDate>Sat, 03 May 2008 00:06:37 EDT</pubDate>
</item>

<item>
<title>Re: Mysql Descending / Ascending order</title>
<link>http://www.dslreports.com/forum/remark,20423767</link>
<description><![CDATA[<A HREF="/useremail/u/888626"><b>dk1983</b></A> : WOW well Ill be!!! :D<br><br>You can use numbers for the column to sort by?? The things you learn just by asking :)<br><br>Thank you Pete]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20423767</guid>
<pubDate>Fri, 02 May 2008 22:04:04 EDT</pubDate>
</item>

<item>
<title>Re: Mysql Descending / Ascending order</title>
<link>http://www.dslreports.com/forum/remark,20423760</link>
<description><![CDATA[<A HREF="/useremail/u/644121"><b>PetePuma</b></A> : the "desc" after the group by seems... wrong.<br><br>You generally need both a group by and an order by.<br><br>If you add<br><br><textarea name="code" class="text" cols=50 rows=10>ORDER BY 2 DESC&#012;</textarea><!--end code block-->to the end of your query, does it work?<br>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20423760</guid>
<pubDate>Fri, 02 May 2008 22:01:34 EDT</pubDate>
</item>

<item>
<title>Mysql Descending / Ascending order</title>
<link>http://www.dslreports.com/forum/remark,20423587</link>
<description><![CDATA[<A HREF="/useremail/u/888626"><b>dk1983</b></A> : Guys can someone help me out with my select statement?<br><br><textarea name="code" class="text" cols=50 rows=10>select hoboid, sum(spd) as speed from db_stats_change where tstamp between date_sub(now(), interval 7 day) and now() group by hoboid desc&#012;</textarea><!--end code block--><br>That is what I have now but I cant seem to order it by speed, what gives?<br><br>data:<br><textarea name="code" class="text" cols=50 rows=10>|  295420 |   159 |&#012;|  274589 |   602 |&#012;|  260826 |     0 |&#012;|  195812 |     0 |&#012;|  193774 |     1 |&#012;|  153341 |     0 |&#012;|   86617 |     0 |&#012;|   84856 |    34 |&#012;|   16147 |    46 |&#012;+---------+-------+&#012;</textarea><!--end code block-->]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20423587</guid>
<pubDate>Fri, 02 May 2008 21:21:19 EDT</pubDate>
</item>

</channel>
</rss>
