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

Thread: max data

  1. #1
    Join Date
    Aug 2003
    Location
    Lucknow
    Posts
    8

    max data

    hi all,

    there is a table in which there is one column whose datatype is numeric. in this there are 300 rows. i want 250th maximum value of that table. how we can get it.

    bye
    thanks

  2. #2
    Join Date
    Oct 2002
    Location
    Ljubljana,Slovenia
    Posts
    28
    SELECT your_number from
    ( SELECT ROWNUM rn, your_number from your_table ORDER BY your_number ) WHERE rn = 250;
    Aleš Orehek

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