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 get second highest salary in SQL(as/4000

Answer Posted / apurva

Select *
From (
Select *
From (select * from emp order by sal desc)
Where rownum < 3 order by sal) ---> n+1 for example for
secound you should use 3
Where rownum < 2

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee (eno int(2),ename varchar(10)) ? : Sql dba

1035


Why we use pl sql?

955


how to add a new column to an existing table in mysql? : Sql dba

1064


Differentiate pl/sql and sql?

1062


What is the primary use of normalization?

999


What is field delimiter?

1042


How many sql statements are used? Define them.

1035


What is the difference between explicit and implicit cursors in oracle?

1060


Why select is used in sql?

1011


How does sql developer connect to oracle database?

997


What is the plv (pl/vision) package offers?

1044


Do stored procedures prevent sql injection?

966


What is record in pl sql?

1076


How do I partition in sql?

959


What is sql character function?

1068