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

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between inner and outer join? Explain with example. : Sql dba

1023


explain primary keys and auto increment fields in mysql : sql dba

974


what is top in tsql? : Transact sql

1113


What is the difference between mdf and ndf files?

1115


Is sql a oracle?

976


What jobs use sql?

980


What is difference between inner join and self join?

1079


What is dba in sql? : SQL DBA

1037


What is cursor and its types?

1064


What is using in sql?

1084


Can primary key be changed?

903


Explain autonomous transaction.

1152


Can we create view in stored procedure?

955


What are character functions in sql?

936


How do you identify a primary key?

1061