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 out second largest value in the table

Answer Posted / mk

select *from emp where sal=(select distinct(max(sal)) from
emp where sal <select max(sal) from emp )

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to define a specific record type?

1048


How is it different from a normal table?

990


How will you write a query to get a 5th rank student from a table student_report?

1830


What is user managed backup in Oracle?

1098


What types of joins are used in writing subqueries?

951


How do I spool to a csv formatted file using sqlplus?

983


What do you mean by group by clause?

1005


How to run queries on external tables?

1003


How would you begin to troubleshoot an ORA-3113 error?

2049


Differentiate between pre-select and pre-query?

1071


How to insert a new row into a table in oracle?

1122


1) Does oracle have any table which contain all the exceptions and it's code internally?

1718


Explain the types of exception?

1104


What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.

1072


How to convert characters to numbers in oracle?

1026