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...

Write a query to find second highest salary of an employee.

Answer Posted / gyana ranjan behera

select ename,sal.rn from(select ename,sal,rownum rn from(select ename,sal from emp order by sal desc))where rn=2;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what does the t-sql command ident_current does? : Transact sql

988


What is a primary key sql?

1047


Can triggers stop a dml statement from executing on a table?

1107


Are stored procedures faster than queries?

949


How to pronounce postgresql?

1065


Is sql microsoft?

1061


How do I find duplicates in sql?

938


What is the command used to fetch first 5 characters of the string?

1405


What is difference between pls_integer and integer?

969


What are the different types of dbmss?

1015


What is trigger and stored procedure in sql?

1045


how can you see all indexes defined for a table? : Sql dba

1003


How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?

1144


What are the indexing methods?

1054


Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?

1040