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

select min(salary) from tblempsal where salary in(select
distinct
top 2 salary from
tblempsal order by salary desc)

Is This Answer Correct ?    20 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is recursive stored procedure? : Sql dba

990


how to install mysql? : Sql dba

1114


What are the different type of joins in sql?

957


How do I kill a query in postgresql?

1142


What is the difference between distinct and unique in sql?

956


Explain the savepoint statement.

1102


What are the different types of functions in sql?

1059


How do I count rows in sql?

1011


Can 2 queries be executed simultaneously in a distributed database system?

1150


How to move files from one directory to another in pl sql?

1197


What is primary key sql?

1046


How do sql triggers work?

1051


what is union, minus and interact commands? : Sql dba

1190


1. is it possible to use the cursor atttibutes (%found ,% rowcount , %isopen , %notfound ) to our user defined cursor names ....... cursor cursor_name is select * from scott.emp if you use... cursor_name%found , %rowcount ,%isopen,%notfound...will it work... -------------------------- 2.what is the difference between the varray and index by table .. -------- 3. type type_name is table of number(8,3) index by binary_integer; identifier_name type_name; first , last , prior , next ,trim are the methods we can use it for the above type...simillary is there any way to apply for cursors... with thanks and regards..sarao...

2449


What is before trigger?

1007