<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in Select a random record. | PostgreSQL PgSQL | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Wed, 22 Dec 2004 08:54:15 -0000</lastBuildDate><item><title>Re: Select a random record. | PostgreSQL PgSQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/470/select-a-random-record/#comment-2767563</link><description>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.</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. | PostgreSQL PgSQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/470/select-a-random-record/#comment-2767562</link><description>select ... order by rand()</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. | PostgreSQL PgSQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/470/select-a-random-record/#comment-2767561</link><description>&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;br&gt;&lt;br&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;</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. | PostgreSQL PgSQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/470/select-a-random-record/#comment-2767560</link><description>select  ....   order by random() limit 1</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. | PostgreSQL PgSQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/470/select-a-random-record/#comment-2767559</link><description>Just a little bit easier:&lt;br&gt;&lt;br&gt;SELECT cat, dog &lt;br&gt;FROM foo &lt;br&gt;ORDER BY random()&lt;br&gt;LIMIT 1;</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>