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 / rajesh chauhan

sql>select max(salary)from(select salary from employee where
salary not in(select max(salary)from employee))

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Cite the differences between execution of triggers and stored procedures?

1077


Which data dictionary views have the information on the triggers that are available in the database?

1236


What is a join?

1068


What is the difference between left outer join and left join?

994


What is insert command in sql?

1129


Can you select everything, but 1 or 2 fields, without writer's cramp?

984


Which is faster truncate or drop?

1045


What do you understand by pl/sql records?

1018


Is left join same as inner join?

1129


How to convert comma separated string to array in pl/sql?

1184


What is sql character function?

1080


Why do we use partitions in sql?

1049


Can I copy :old and :new pseudo-records in/to an oracle stored procedure?

1209


Is big data nosql?

944


Why use subqueries instead of joins?

1080