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 / vijay shegokar

select * from employee where salary=(select max(salary) from
employee where salary not in (select max(salary) from
employee));

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between union and union all command?

1091


Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?

1015


what are the differences among rownum, rank and dense_rank? : Sql dba

1040


what is 'mysqlimport'? : Sql dba

1054


What are sql indexes?

1001


What is the difference between microsoft access and sql server?

1060


What does the acronym acid stand for in database management?

1032


What is rollback?

1115


Can we use joins in subquery?

1165


what is oltp (online transaction processing)? : Sql dba

1078


What is multiple columns?

1069


Explain the order of sql statement execution?

1046


what happens if null values are involved in expressions? : Sql dba

1045


Why is pl sql needed?

947


Why is sql important?

1109