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 / sachin s. patil

SELECT SAL FROM
(SELECT ROWNUM DD, M.* FROM
(SELECT SAL FROM EMP order by sal desc )M)
WHERE DD=2/***HERE U CAN ADD ANY NUMBER (WHERE I PUT 2)
, U WILL GET HEIGHEST SALARY THAT POSITION *******/

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 materialized view in sql?

926


what is a database lock ? : Sql dba

1177


Do ddl statements need commit?

975


What is transaction control language (tcl)?

1142


What are different joins used in sql?

1062


What is the usage of the distinct keyword?

1221


How does postgresql compare to oracle/db2/ms sql server/informix?

1040


How do I find duplicates in the same column?

1101


How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?

1114


What is dml with example?

1094


What is mutating sql table?

1118


give the syntax of grant and revoke commands? : Sql dba

1158


Do foreign keys improve performance?

1027


Explain lock escalation? : Transact sql

1207


Are dml statements autocommit?

1050