Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: query problem help needed
Two problems:
SELECT * FROM tablename
WHERE rownum <=20
ORDER BY length(name) DESC
You should get values from all (both?) columns for the 20 records in your table returned in highest to lowest order based on number of characters in the 'name' column.
Good luck.
-Brendan
In article <6ia1g1$20v$2_at_antwerpen.planetinternet.be>,
"Elvis" <p2760_at_hotmail.com> wrote:
>
> hi,
>
> student needs help
>
> how can i select the 20 biggest files from my table????????
>
> table files
> -------------
> naam varchar2(50)
> size integer
>
> thanks
>
> bart
>
>
-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading Received on Thu Apr 30 1998 - 14:13:11 CDT
![]() |
![]() |