<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tech-Recipes - Latest Comments in Select a random record.</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><atom:link href="https://tech-recipes.disqus.com/select_a_random_record_postgresql_pgsql_tech_recipes/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 22 Dec 2004 08:54:15 -0000</lastBuildDate><item><title>Re: Select a random record.</title><link>http://www.tech-recipes.com/rx/470/select-a-random-record/#comment-2767563</link><description>&lt;p&gt;THe reason the author did it this way is because its the fastest performance wise. You are right in stating that order by rand() is more compact when speaking about code but this example is all about speed now.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 22 Dec 2004 08:54:15 -0000</pubDate></item><item><title>Re: Select a random record.</title><link>http://www.tech-recipes.com/rx/470/select-a-random-record/#comment-2767562</link><description>&lt;p&gt;select ... order by rand()&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 04 Dec 2004 09:40:51 -0000</pubDate></item><item><title>Re: Select a random record.</title><link>http://www.tech-recipes.com/rx/470/select-a-random-record/#comment-2767561</link><description>&lt;p&gt;&amp;lt;ul id="quote"&amp;gt;&amp;lt;h6&amp;gt;Anonymous wrote:&amp;lt;/h6&amp;gt;Just a little bit easier:&lt;/p&gt;&lt;p&gt;SELECT cat, dog &lt;br&gt;FROM foo &lt;br&gt;ORDER BY random()&lt;br&gt;LIMIT 1;&amp;lt;/ul&amp;gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 25 Aug 2004 17:29:01 -0000</pubDate></item><item><title>Re: Select a random record.</title><link>http://www.tech-recipes.com/rx/470/select-a-random-record/#comment-2767560</link><description>&lt;p&gt;select  ....   order by random() limit 1&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chad</dc:creator><pubDate>Wed, 25 Aug 2004 09:12:51 -0000</pubDate></item><item><title>Re: Select a random record.</title><link>http://www.tech-recipes.com/rx/470/select-a-random-record/#comment-2767559</link><description>&lt;p&gt;Just a little bit easier:&lt;/p&gt;&lt;p&gt;SELECT cat, dog &lt;br&gt;FROM foo &lt;br&gt;ORDER BY random()&lt;br&gt;LIMIT 1;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 10 Aug 2004 02:05:49 -0000</pubDate></item></channel></rss>