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 / dinesh rajput

select sal from(select sal from
(select distinct sal from emp order by sal desc)
where rownum<=2 order by sal asc)
where rownum=1;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is natural join in sql?

991


Why are cursors used?

1123


What is the maximum number of rows in sql table?

1030


What is cursor and its types?

1075


What is the sql query to display the current date?

1044


what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba

1074


What is right join in sql?

1095


how to shutdown mysql server? : Sql dba

1107


Write a sql query to find the names of employees that begin with ‘a’?

1015


What is the most common sql injection tool?

1044


Can we create table inside stored procedure?

958


What are the subsets of sql?

1136


What is sql and also describe types of sql statements?

1066


how to convert character strings to numeric values? : Sql dba

1112


What language is oracle sql developer?

1022