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

select * from emp where sal = (select max(sal) from emp where sal<>(select max(sal) from emp));

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is the After report trigger fired if the report execution fails ?

2887


How to add a new column to an existing table with a default value?

987


What is the sid in oracle?

923


Why do we need integrity constraints in a database?

990


Why use resource manager in Oracle?

1069


Where are the settings stored for each instance in oracle?

1078


How to define an explicit cursor in oracle?

1002


How to experiment a data lock in oracle?

1016


What is a trigger and what are its types?

1147


how can db_files > maxdatafiles since db_files is for instance and the later is for database

2588


Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.

1728


20. Using a set operator, display the client number of all clients who have never placed an order.

2156


State the various uses of dbcc command?

1010


What are the ways tablespaces can be managed and how do they differ?

2295


Explain the use of parfile option in exp command.

1014