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

select max(sal) from emp where sal in(select sal from emp
where sal<>(select max(sal) from emp))

/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is not null in sql?

1043


How bulk collect improves performance?

1055


What does pragma mean?

1130


What are types of joins?

1026


Can a commit statement be executed as part of a trigger?

1101


What is posting?

1083


The select into statement is most often used to create backup copies of tables or for archiving records?

1115


what are the different index configurations a table can have? : Sql dba

1042


What is sql*loader and what is it used for?

1218


What is the sql query to display the current date?

1092


Why do we use %rowtype & %type in plsql?

1096


What are the operators used in select statements?

1097


How to return an array from java to pl/sql?

1181


What are the operators in sql?

1068


Is sqlite thread safe?

1102