in reply to Re^3: Should it be database independent?
in thread Should it be database independent?
On further checking, rownum doesn't respect order by and you have to use a nested select if you want the top N of an ordered set.
Taken from http://c2.com/cgi/wiki?ThinkSqlAsConstraintSatisfaction, about halfway down the page. Further more (and I haven't looked for the reference), limit works with nested queries correctly where rownum doesn't always work. It's a neat almost-the-same, but it's not.
Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Should it be database independent?
by jplindstrom (Monsignor) on Mar 23, 2005 at 09:08 UTC | |
by dragonchild (Archbishop) on Mar 23, 2005 at 13:28 UTC |