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 / shalina bajaj

select sal from emp a
where $number = (select count(distinct(sal))
from emp b
where a.sal <= b.sal);

Is This Answer Correct ?    11 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is error ora-01000: maximum open cursors exceeded

1151


How to find 3rd highest salary of an employee from the employee table in sql?

1083


How many types of triggers are there in pl sql?

1070


what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba

1077


What is the difference between microsoft sql and mysql?

967


Are pl sql variables case sensitive?

1053


Differentiate between pl/sql and sql?

1155


What is write ahead logging in sql server?

1056


How do I view a sql trace file?

1035


List the ways to get the count of records in a table?

902


How is use pl and sql?

1068


Is sql developer case sensitive?

1005


What is sql select statement?

1038


What is a .db file?

992


What is a record in pl/sql?

1153