Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to find the second highest salary from emp table?

Answer Posted / mangesh pardhi

SELECT salary
FROM employee e
WHERE 2=(SELECT COUNT(DISTINCT salary)
FROM employees
WHERE e.salary<=salary)
--replace the number with 2,3,4 u wil find the that position
salary

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a trigger in mysql? : Sql dba

1144


Can we rollback delete command?

981


What is pragma in sql?

1072


How many types of cursors are available in pl/sql?

1105


what is 'mysqlcheck'? : Sql dba

1011


How to order siblings in oracle hierarchy queries?

1041


Is primary key clustered index?

946


How do I view a procedure in sql?

967


What is indexing oracle sql?

1098


What information is needed to connect sql*plus an oracle server?

1026


What are all the ddl commands?

1178


What are predefined functions in sql?

1042


How do you change a value in sql?

1013


what is primary key? : Sql dba

1024


Can we change the table name in sql?

938