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

select TOP salary from employee where salary in( select TOP 2 salary from employee order by salary desc) order by salary asc

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the sql commands?

1188


What are sql ddl commands?

1099


What is benefit of creating memory optimized table?

976


Explain the uses of a database trigger?

1045


What is primary key and unique key?

1122


How long it takes to learn pl sql?

1021


What is the difference between the sql*loader and import utilities? : aql loader

1048


What is the most common sql injection tool?

1047


What is pl sql code?

1060


What is the difference between numeric and autonumber?

1005


what is a composite key ? : Sql dba

1068


How do you write an inner join query?

958


Is primary key clustered index?

954


Is there a way to automate sql execution from the command-line, batch job or shell script?

977


Which table is left in join?

983