Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: newbie question about rownum
Steve,
If all you are trying to do is get the first name alphabetically you can use the min function. eg,
SELECT MIN(name) FROM Employees;
Regards
Rod Stewart
steve lancour wrote in message <35E351B4.E36B04B0_at_lancour.tcimet.net>...
> I'm trying to query an Oracle table using an order by clause, but am
>only interested in the first row returned by the query. For example, I
>have a table called EMPLOYEES with a column called NAME and want only
>the first record in alphabetical order by name.
>
Received on Tue Aug 25 1998 - 20:01:09 CDT
![]() |
![]() |