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

select top 1 salary from emp
where salary in (select top 2 salary from emp order by salary desc)order by salary

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are triggers and its types?

1120


How do you truncate?

955


What is data abstraction in sql?

1066


What is a primary key example?

1002


What is foreign key sql?

1039


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

1099


What is difference between my sql and sql?

1139


What trigger means?

1036


What is rownum?

1034


What does data normalization mean?

1028


What is dml and ddl?

1009


How do you modify a column in sql?

1053


what is a record in a database ? : Sql dba

1105


Do ddl statements need commit?

1023


explain advantages of innodb over myisam. : Sql dba

1175