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 / naveen r kumar

SELECT Max(salary) FROM TABLE
WHERE salary NOT IN (SELECT Max(salary) FROM TABLE);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of triggers in sql?

1144


How do you bind variables in pl sql?

1160


Can I join the same table twice?

1095


What is the usage of when clause in trigger?

1091


How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000

2205


Can we use having without group by in sql?

1052


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

1072


What is the sql case statement?

1055


Is hadoop a nosql?

1054


Mention what is the plv (pl/vision) package offers?

1164


What is pl sql code?

1106


Which query operators in sql is used for pattern matching?

1012


Can we join same table in sql?

1068


What does select * from mean in sql?

3337


Does pl sql work in mysql?

1035