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

select top 1 salary from emp
where salary in (select top 2 salary from emp order by salary desc)order by salary

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of sql commands?

1111


How do I run a sql query in pgadmin 4?

959


What is equi join in sql?

1066


Which certification is best for sql?

981


what is sp_pkeys? : Transact sql

1149


Is sql a oracle?

974


write an sql query to find names of employee start with 'a'? : Sql dba

1023


What is the sql query to display the current date?

1041


Is t sql a programming language?

1062


How can we debug in PL/SQL?

1131


What is out parameter used for eventhough return statement can also be used in pl/sql?

1069


What are character functions?

1082


Why having clause is used in sql?

976


How to create a menu in sqlplus or pl/sql?

1118


Which are sql * plus commands?

1122