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

select salary,empname from employee where
salary=(select max(salary) from employee where
salary<(select max(salary) from employee))

This query will produce all the result whose salary is
second highest.

1. A 20000
2. B 20000
3. C 20000
4. D 20000

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain commit, rollback and savepoint.

1056


What is multiple columns?

1120


Explain how can you save or place your msg in a table?

1078


what is a database? : Sql dba

1242


Why we use triggers in mysql?

1041


Is sql procedural language?

1015


How is debugging done?

1020


how to install mysql? : Sql dba

1162


how to rename an existing table in mysql? : Sql dba

1116


The in operator may be used if you know the exact value you want to return for at least one of the columns.

1229


What is trigger with example?

1170


What are the parts of a sql statement?

1147


What is crud sql?

1031


What are the operators used in select statements?

1100


how to create a new table by selecting rows from another table in mysql? : Sql dba

1168