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 calcuate the second highest salary of he employee

Answer Posted / shailesh

select sal from emp where sal=(select max(sal) from emp
where sal<(select max(sal) 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

how to fetch alternate records from a table? : Sql dba

1050


Explain isolation levels. : Transact sql

1014


What is a function in oracle pl sql?

975


Are dml statements autocommit?

980


tell us something about heap tables. : Sql dba

1047


Can we use joins in subquery?

1084


What is Collation Sensitivity ? What are the various type ?

901


What is before trigger?

943


Why is sql better than hql?

920


What are different clauses used in sql?

1066


Why indexing is needed?

938


What does t sql mean?

895


How to read xml file in oracle pl sql?

859


What is using in sql?

1011


If a cursor is open, how can we find in a pl/sql block?

1103