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 / gourvendra singh

Please put the below query, u will get the second highest
salary of the table :---

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 ?    488 Yes 264 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between undefined value and null value? : Sql dba

1095


what is a database transaction? : Sql dba

1169


What is gpt format?

934


What is a table in a database?

1042


What program will open a mdb file?

959


How many types of triggers exist in pl/sql?

1063


what are the authentication modes in sql server? How can it be changed? : Sql dba

1419


What is the unique index?

1052


Explain the the delete statements in sql?

1055


Is sql scripting language?

1048


What are the two types of cursors in pl sql?

1072


What is consistency?

1115


Explain character-manipulation functions?

1121


What is a record in a database?

1060


How can you select unique records from a table?

1070