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

How do you modify a trigger?

982


What are all the different normalizations?

1078


What is the use of <> sql?

1038


What is pls integer?

1091


What is java sql driver?

1183


Can we use loop in sql?

1010


How we can update the view?

1097


What is aggregate function in sql?

1080


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

1048


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

1065


Is primary key clustered or nonclustered?

1061


what is a database lock ? : Sql dba

1225


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

1214


Sql technical questions

1334


Why partition by is used in sql?

1083