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...

Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / deven

select top 1 salary from emp where salary <>(
select top 1 salary from emp order by salary desc) order by
salary desc

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 packages in pl sql?

1025


what are dynamic queries in t-sql? : Transact sql

1035


Is left join same as join?

1004


Why do we use joins in sql?

978


If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????

4017


What is application trigger?

1007


What is the difference between rollback and rollback to statements?

1068


How to connect a sql*plus session to an oracle server?

1140


How do you concatenate in sql?

1037


Is join same as left join?

1049


which operator is used in query for pattern matching? : Sql dba

1011


what is recursive stored procedure? : Sql dba

997


Why do we use function in pl sql?

1071


What are the benefits of pl/sql packages?

1116


What is sqlservr exe?

988