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

select ename,sal from (select ename,sal,row_number()
over(order by sal desc)rn from emp)
where rn=1;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between numeric and autonumber?

1004


What is the difference between the implicit and explicit cursors?

1057


Is sql an operating system?

1021


What program will open a mdb file?

970


What is pl sql and why it is used for?

1114


How many joins in sql?

1017


how to include numeric values in sql statements? : Sql dba

1104


what is the difference between rownum pseudo column and row_number() function? : Sql dba

1089


What is the best sql course?

989


Explain architecture of sql server notification services?

1065


What is the purpose of cursors in pl/sql?

1138


What is over () in sql?

970


How does cross join work?

961


What is your daily office routine?

2274


what are integrity rules?

1036