Results 1 to 3 of 3

Thread: how to write a query for 1st, 2nd, 3rd max salary

  1. #1
    Join Date
    Mar 2006
    Posts
    14

    how to write a query for 1st, 2nd, 3rd max salary

    employee table having columns employeeid, salary

    i want to write a query to get 1st, 2nd and 3rd max salary ?

  2. #2
    Join Date
    Apr 2006
    Posts
    30
    select top 3 employeeid, salary
    from tableName
    order by salary desc

  3. #3
    Join Date
    Mar 2006
    Posts
    14

    hi russelb

    I appreciate ur help

Posting Permissions

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