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

Thread: how to show first three maximum salary

  1. #1
    Join Date
    Aug 2001
    Posts
    56

    Angry

    Hi

    I have one column in table called salary, thousand of records in this table.
    i need to know first three maxium salary data.

    what query i have to written.
    Anuj
    India

  2. #2
    Join Date
    Feb 2001
    Location
    Paris, France
    Posts
    809
    if you're using oracle 8+ :

    select salary
    from (select salary from table order by salary desc)
    where rownum <= 3;

  3. #3
    Join Date
    Aug 2001
    Posts
    56
    Thanks Pipo
    Anuj
    India

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