Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How do I get last 15 rows from a select query

User_GW8PBApr 25 2002
Hello,

I am writing a query, and I need to filter the last 15 rows of from the select query.

For example: Select id, name,join_date from emp order by join_date;

So I need to get the last 15 rows from emp table so that we can who are the last 15 employees joined the organization. I want to show the result in ascending order, otherwise I would have taken first 15 rows with order by clause as descinding order.

Thanks in advance,
Param.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2002
Added on Apr 25 2002
20 comments
1,765 views