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 / shivdas suryawanshi

select salary from emp where salary=(select max(salary)
from emp where salary < (selct max(salary) from emp));

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is database migration?

963


What is rownum in sql?

1043


what is a database transaction? : Sql dba

1172


what is the difference between ereg_replace() and eregi_replace()? : Sql dba

1148


Do ddl statements need commit?

965


What plvcmt and plvrb does in pl/sql?

1319


Is sql sequential or random?

1029


Can we call dml statement in function?

1051


How do you update f as m and m as f from the below table testtable?

1852


What is delimiter in pl sql?

1062


What is execution plan in sql?

1041


Can we use joins in subquery?

1158


What are the parts of a sql statement?

1086


What is embedded sql in db2?

1013


What is string join?

974