<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB"><title>Comments on Useful SQL Snippet - AddedBytes.com</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/useful-sql-snippet/" /><link rel="self" type="application/xml" href="http://www.addedbytes.com/article/useful-sql-snippet/comments/atom/" /><subtitle>Latest comments on Useful SQL Snippet on AddedBytes.com</subtitle><author><name>Dave Child</name></author><updated>2007-05-21T15:39:34Z</updated><id>tag:addedbytes.com,2007:380</id><!-- ckey="76C662BB" --><entry><title>Comment on Useful SQL Snippet</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/useful-sql-snippet/comments/" /><summary type="text">Comment by seo la ( &lt;a href=""&gt;&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Benjamin's solution is amazing. 
&lt;br /&gt;Nice way to use logical expressions for sql queries, i was looking for that</summary><id>tag:addedbytes.com,2007:52180</id><published>2007-09-09T17:23:39+01:00</published><updated>2007-09-09T17:23:39Z</updated></entry><entry><title>Comment on Useful SQL Snippet</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/useful-sql-snippet/comments/" /><summary type="text">Comment by Dave Child ( &lt;a href="http://www.addedbytes.com"&gt;http://www.addedbytes.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Hi Benjamin,&lt;br /&gt;&lt;br /&gt;I am using a very odd version of MySQL indeed ... SQL Server :)&lt;br /&gt;&lt;br /&gt;Probably should have made that clearer before. Sorry.</summary><id>tag:addedbytes.com,2007:43204</id><published>2007-07-13T09:09:21+01:00</published><updated>2007-07-13T09:09:21Z</updated></entry><entry><title>Comment on Useful SQL Snippet</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/useful-sql-snippet/comments/" /><summary type="text">Comment by Benjamin Wilger ( &lt;a href=""&gt;&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;hm sounds strange. Maybe you use a very old version of MySQL (3.23)? MySQL should allow expressions inside of ORDER BY clauses in Versions above 4.&lt;br /&gt;&lt;br /&gt;Greetings,&lt;br /&gt;Ben</summary><id>tag:addedbytes.com,2007:41668</id><published>2007-07-08T12:31:05+01:00</published><updated>2007-07-08T12:31:05Z</updated></entry><entry><title>Comment on Useful SQL Snippet</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/useful-sql-snippet/comments/" /><summary type="text">Comment by Dave Child ( &lt;a href="http://www.addedbytes.com"&gt;http://www.addedbytes.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;I had some problems with Benjamin's solution (kept getting an error saying &quot;Incorrect syntax near '&gt;'.&quot;). I changed it to this (virtually the same) and it worked fine:&lt;br /&gt;&lt;br /&gt;ORDER BY (cast(ProductStock as bit)) DESC</summary><id>tag:addedbytes.com,2007:36107</id><published>2007-06-15T15:46:05+01:00</published><updated>2007-06-15T15:46:05Z</updated></entry><entry><title>Comment on Useful SQL Snippet</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/useful-sql-snippet/comments/" /><summary type="text">Comment by Tino ( &lt;a href="http://computeragency.de"&gt;http://computeragency.de&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Can't believe - it works. Thanks lot!</summary><id>tag:addedbytes.com,2007:34984</id><published>2007-06-07T11:39:55+01:00</published><updated>2007-06-07T11:39:55Z</updated></entry><entry><title>Comment on Useful SQL Snippet</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/useful-sql-snippet/comments/" /><summary type="text">Comment by The King ( &lt;a href="http://adiazar.blogspot.com"&gt;http://adiazar.blogspot.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Thanks for sharing!</summary><id>tag:addedbytes.com,2007:34955</id><published>2007-06-07T02:50:09+01:00</published><updated>2007-06-07T02:50:09Z</updated></entry><entry><title>Comment on Useful SQL Snippet</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/useful-sql-snippet/comments/" /><summary type="text">Comment by Ad ( &lt;a href="http://www.adiazar.com"&gt;http://www.adiazar.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Benjamin rocks!</summary><id>tag:addedbytes.com,2007:34163</id><published>2007-05-29T22:26:34+01:00</published><updated>2007-05-29T22:26:34Z</updated></entry><entry><title>Comment on Useful SQL Snippet</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/useful-sql-snippet/comments/" /><summary type="text">Comment by Bandolino ( &lt;a href="http://www.bandolinoshoes.us/"&gt;http://www.bandolinoshoes.us/&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Thanks Benjamin, That's indeed a great solution. :)</summary><id>tag:addedbytes.com,2007:33872</id><published>2007-05-26T19:52:36+01:00</published><updated>2007-05-26T19:52:36Z</updated></entry><entry><title>Comment on Useful SQL Snippet</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/useful-sql-snippet/comments/" /><summary type="text">Comment by Loke Krongaard Hansen ( &lt;a href="http://pagerank-boost.com"&gt;http://pagerank-boost.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;A plain and elegant solution indeed.&lt;br /&gt;Both thumbs up !!</summary><id>tag:addedbytes.com,2007:33648</id><published>2007-05-24T19:15:59+01:00</published><updated>2007-05-24T19:15:59Z</updated></entry><entry><title>Comment on Useful SQL Snippet</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/useful-sql-snippet/comments/" /><summary type="text">Comment by Guilherme Zühlke O'Connor ( &lt;a href="http://www.z-oc.com"&gt;http://www.z-oc.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Ben, yours is a very nice and elegant solution.&lt;br /&gt;&lt;br /&gt;I understood it when I saw it, that's why I said it makes sense, but I wouldn't have think of it myself, I guess (Perhaps now I would...)&lt;br /&gt;&lt;br /&gt;I would be searching for a number, not a &quot;boolean&quot; for that field.</summary><id>tag:addedbytes.com,2007:33343</id><published>2007-05-21T20:45:03+01:00</published><updated>2007-05-21T20:45:03Z</updated></entry></feed>