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

1.how to extract the second highest salary from emp table
having sal as a column which contains the salary of all
employee of an organisation.

Answer Posted / esakkiraja

select a.* from(select dense_rank() over(order by sal)as
new_rank from emp) a where new_rank=2

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to drop a tablespace?

1027


How to count duplicated values in a column in oracle?

1022


What is a server parameter file in oracle?

1034


How do you bind variables in oracle?

955


What are the components of logical database structure in oracle database?

1061


How to use subqueries with the in operator using oracle?

1067


How to find out what oracle odbc drivers are installed?

1021


How to load excel data sheet to oracle database

1002


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

1086


How to start your 10g xe server?

1011


What is a data lock in oracle?

1077


How to load data through external tables?

1117


From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.

1046


What is an anonymous block?

1216


Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.

2135