Results 1 to 3 of 3

Thread: about sql

  1. #1
    Join Date
    Aug 2008
    Posts
    3
    Rep Power
    0

    Default about sql

    please help me
    how to find second maximum salary and third maximum salary
    please send me sql command for that

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    8

    Default

    Find an SQL forum

  3. #3
    MuthuKumar is offline Member
    Join Date
    Aug 2008
    Posts
    5
    Rep Power
    0

    Default

    For example Employee is the table, then
    Select Max(Salary)
    From Employee
    Where Salary < (Select Max(Salary) From Employee)
    This sql query is to find the second maximum salary

Posting Permissions

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