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 / surendra sharma

select min(sal) from table_name where sal in

(SELECT top 2 sal FROM table_name order by sal desc)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba

1127


what is commit? : Sql dba

1127


What are the rules to be applied to nulls whilst doing comparisons?

1370


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?

1177


What is the difference between distinct and unique in sql?

993


what are the different index configurations a table can have? : Sql dba

1043


Write a sql query to convert all character to uppercase after hypen.

1486


If a cursor is open, how can we find in a pl/sql block?

1216


What are types of indexes in sql?

1137


what is meant by urlencode and urldocode? : Sql dba

1243


What is primary key and foreign key with example?

984


Can we use threading in pl/sql?

1100


Is it possible to create startup or shutdown trigger for on-schema?

1093


What are the types of dbms?

1027


Can we use loop in sql?

1011