<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: How to return rows in a random order</title>
	<atom:link href="http://oraqa.com/2006/01/27/how-to-return-rows-in-a-random-order/feed/" rel="self" type="application/rss+xml" />
	<link>http://oraqa.com/2006/01/27/how-to-return-rows-in-a-random-order/</link>
	<description>Oracle Question and Answer</description>
	<pubDate>Tue, 06 Jan 2009 15:08:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Francois Degrelle</title>
		<link>http://oraqa.com/2006/01/27/how-to-return-rows-in-a-random-order/comment-page-1/#comment-96</link>
		<dc:creator>Francois Degrelle</dc:creator>
		<pubDate>Tue, 31 Jan 2006 09:40:06 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/27/how-to-return-rows-in-a-random-order/#comment-96</guid>
		<description>With Oracle 10g, you have also the ORA_HASH() function

&lt;pre&gt;
SELECT * FROM sales
   WHERE ORA_HASH(cust_id, 9) = 1;

   PROD_ID    CUST_ID TIME_ID   C   PROMO_ID QUANTITY_SOLD AMOUNT_SOLD
---------- ---------- --------- - ---------- ------------- -----------
      2510       6950 01-FEB-98 S       9999             2          78
      9845       9700 04-FEB-98 C       9999            17         561
      3445      33530 07-FEB-98 T       9999             2         170
. . .
       740      22200 13-NOV-00 S       9999             4         156
      9425       4750 29-NOV-00 I       9999            11         979
      1675      46750 29-NOV-00 S       9999            19        1121
97 rows selected.
&lt;/pre&gt;
ORA_HASH documentation:
http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/functions097.htm#SQLRF06313</description>
		<content:encoded><![CDATA[<p>With Oracle 10g, you have also the ORA_HASH() function</p>
<pre>
SELECT * FROM sales
   WHERE ORA_HASH(cust_id, 9) = 1;

   PROD_ID    CUST_ID TIME_ID   C   PROMO_ID QUANTITY_SOLD AMOUNT_SOLD
---------- ---------- --------- - ---------- ------------- -----------
      2510       6950 01-FEB-98 S       9999             2          78
      9845       9700 04-FEB-98 C       9999            17         561
      3445      33530 07-FEB-98 T       9999             2         170
. . .
       740      22200 13-NOV-00 S       9999             4         156
      9425       4750 29-NOV-00 I       9999            11         979
      1675      46750 29-NOV-00 S       9999            19        1121
97 rows selected.
</pre>
<p>ORA_HASH documentation:<br />
<a href="http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/functions097.htm#SQLRF06313" rel="nofollow">http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/functions097.htm#SQLRF06313</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claudiu Ariton</title>
		<link>http://oraqa.com/2006/01/27/how-to-return-rows-in-a-random-order/comment-page-1/#comment-94</link>
		<dc:creator>Claudiu Ariton</dc:creator>
		<pubDate>Mon, 30 Jan 2006 15:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/27/how-to-return-rows-in-a-random-order/#comment-94</guid>
		<description>Another way to return a sample set of data (procentual) is

 select * from TABLE sample (10)   
 select * from TABLE sample (0.1)

 Best regards,
 Claudiu Ariton</description>
		<content:encoded><![CDATA[<p>Another way to return a sample set of data (procentual) is</p>
<p> select * from TABLE sample (10)<br />
 select * from TABLE sample (0.1)</p>
<p> Best regards,<br />
 Claudiu Ariton</p>
]]></content:encoded>
	</item>
</channel>
</rss>
