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

select max(sal) from table_name where sal not in (select
max(sal) from table_name)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?

1134


What is indexes?

1058


Explain the purpose of %type and %rowtype data types with the example?

994


How does sql profiler work?

1019


What is autocommit sql?

993


What is data manipulation language?

1187


Why schema is used in sql?

1047


how can we know the count/number of elements of an array? : Sql dba

1060


Is sql a dbms?

1011


What is auto increment feature in sql?

1122


Can pl sql procedure have a return statement?

1030


Which is better trigger or stored procedure?

950


what is cursor. write example of it. What are the attributes of cursor.

1391


How to call shell script from pl sql procedure?

1277


What is the difference between nested table and varray?

1003