DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Last rows of a table

  1. #1
    Join Date
    Nov 1999
    Posts
    226
    Hi

    Is there any way I can get the data for the last 10 rows of a table

    regards

  2. #2
    Join Date
    Jul 2000
    Location
    india
    Posts
    213
    hi
    pls try this query and let me know whether it worka or not

    select empno from emp where rownum <(select max(rownum) from emp)
    minus
    select empno from emp where rownum <(select max(rownum)-10 from emp);

    hope this will help u
    pras

  3. #3
    Join Date
    Nov 1999
    Posts
    226

    Thanks

    Thanks

    It works


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width