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 / vinay

It works gr8...

select max(salary) from <table_name> where salary<(select
max(salary)from <table_name>)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need databases?

1040


What are all different types of collation sensitivity?

1031


What is synchronized subquery?

1166


how would you enter characters as hex numbers? : Sql dba

981


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

1004


Is primary key a clustered index?

966


What are different types of statements supported by sql?

1165


Does mysql support pl sql?

1166


What does pragma mean?

1050


What are the parameter modes supported by pl/sql?

1103


What is constant in pl sql?

1018


Explain the difference between rename and alias?

1010


How do I order by ascending in sql?

1013


How do you identify a primary key?

1063


How to use sql statements in pl/sql?

1117