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

select * from emp where 2=(select count(distinct sal) from emp s where s.sal>e.sal

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?

1835


What does count (*) do in sql?

1018


what is sql? : Sql dba

1030


How delete all data from table in sql?

1021


Does sql between include endpoints?

1018


Which are the different case manipulation functions in sql?

1032


What is the use of function in sql?

1098


What is trigger types in sql?

999


How do I remove all records from a table?

1081


What are the three forms of normalization?

1048


Why do we use procedures?

963


Does sql*plus have a pl/sql engine?

1078


What is the left table in sql?

971


mention if it is possible to import data directly from t-sql commands without using sql server integration services? If yes, what are the commands? : Transact sql

1045


What is native sql query?

1027