<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Don't know if it is relevant to you, but I use Oracle and I've gotten burned by the limit a couple of times.<br>If you write something like:<br>select * from taxonomy where rownum &lt; 10 order by tax_id <br><br>You do not get the first 10 rows, but a seemingly random 10 rows.<br>The first 10 requires a subquery, otherwise oracle sorts the rows after taking the first 10 rows, not before.<br><br>select * from (select * from taxonomy order by tax_id ) where rownum &lt; 10 <br><br><br><br><br><hr id="stopSpelling">&gt; Date: Tue, 24 Oct 2006 16:22:32 -0500<br>&gt; To: austin@pm.org<br>&gt; From: CaptNemo@Austin.rr.com<br>&gt; Subject: Re: APM: Last question (for today)<br>&gt; <br>&gt; DOH, limit the SQL query.<br>&gt; <br>&gt; /me feels dumb.<br>&gt; <br>&gt; I was so caught up in the joy that my pages are working, I'm not thinking <br>&gt; straight.<br>&gt; <br>&gt; <br>&gt; <br>&gt; &gt;Use your databases limit feature.  Often the word "LIMIT" followed by a<br>&gt; &gt;number at the end of the statement.<br>&gt; &gt;<br>&gt; &gt;example:<br>&gt; &gt;<br>&gt; &gt;SELECT *<br>&gt; &gt;   FROM dual<br>&gt; &gt;  LIMIT 1;<br>&gt; <br>&gt; _______________________________________________<br>&gt; Austin mailing list<br>&gt; Austin@pm.org<br>&gt; http://mail.pm.org/mailman/listinfo/austin<br><br /><hr />Try the next generation of search with Windows LiveT Search today! <a href='http://search.live.com' target='_new'>Try it!</a></body>
</html>