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 an index in sql with example?

1022


How do you create a unique index?

1094


What is PL/SQL Records?

1257


What is ttitle and btitle?

1116


When you have to use a default "rollback to" savepoint of plvlog?

1252


What is $$ in sql?

1046


How do I remove sql developer from windows 10?

1185


what are the advantages a stored procedure? : Sql dba

1021


How to select random rows from a table?

1136


what is dbms? : Sql dba

1036


How does postgresql compare to mysql?

1080


how many values can the set function of mysql take? : Sql dba

1039


What do you understand by pl/sql packages?

1107


how to shutdown mysql server? : Sql dba

1147


Enlist the advantages of sql.

1054