Results 1 to 3 of 3

Thread: Query Needed

  1. #1
    Join Date
    Jun 2007
    Posts
    14

    Query Needed

    Hi all,
    I want to find the 5th max value , kindly send me the simple query .

  2. #2
    Join Date
    May 2007
    Posts
    3
    try this query
    select fieldname from tablename order by fieldname desc
    limit 4,1
    where fieldname is name of the field for which you want the 5th maximum value
    eg.
    select salary from employee order by salary desc limit 4,1

  3. #3
    Join Date
    Jun 2007
    Posts
    14

    Query Needed

    Hi,
    Thank U for send query . Its working corretly.

    regards,
    Ram

Posting Permissions

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