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 / shankar panda

SELECT DISTINCT(E.SALARY) FROM EMPLOYEES E WHERE 2=(SELECT COUNT(DISTINCT D.SALARY) FROM EMPLOYEE D WHERE D.SALARY >= E.SALARY)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I count rows in sql?

946


When is the update_statistics command used?

1045


How will you distinguish a global variable with a local variable in pl/sql?

1085


What are different types of sql?

1092


Why procedure is used in sql?

968


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

992


How is data stored on a disk?

961


What is a table partition?

1035


Why do we use procedures in pl sql?

957


What is output spooling in sql*plus?

980


What are the different types of database management systems?

947


What is the primary use of normalization?

936


What is anonymous block in sql?

1070


How sql query is executed?

1064


How do you concatenate in sql?

970