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

How would you convert date into julian date format?

1001


what are the differences between binary and varbinary? : Sql dba

1038


What are all different types of collation sensitivity?

1029


What does pl sql stand for?

1109


what are the type of locks ? : Sql dba

962


Explain polymorphism in pl/sql.

1113


Why truncate is used in sql?

1003


Where not exists in sql?

976


Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)

955


what are the non-standard sql commands supported by 'mysql'? : Sql dba

1118


How does cross join work?

948


What is java sql drivermanager?

1086


what are all the different normalizations? : Sql dba

1036


Why is nosql good?

1023


Difference between truncate, delete and drop commands?

1082