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

not only seceond highest . you can retrieve 2nd , 3rd.....
highest salary form this query

select min(Salary) from
(select distinct top 2 Salary from tblCategory order by
Salary desc) as tblCategory

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 a natural join?

992


Is it possible to create the following trigger: before or after update trigger for each row?

1238


What are the different sql languages?

987


Is a view faster than a stored procedure?

902


How many rows can sqlite handle?

1050


What is a temporal data type?

981


Is natural join same as inner join?

872


Does sap use sql?

933


How do I access sql anywhere database?

921


List the different type of joins?

1004


What's the difference between a primary key and a clustered index?

947


How many developers work on postgresql?

917


What is sql data?

925


what is the difference between char_length and length? : Sql dba

993


What is the purpose of my sql?

902