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 find second highest salary of an employee.

Answer Posted / mubin ahmad

select salary from employee e1 where 2=(select count(*)
from employee e2 where e2.salary>=e1.salary)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is compound trigger?

995


Explain what is a subquery ?

1137


What is a sql instance vs database?

1066


what is the difference between a having clause and a where clause? : Sql dba

1042


Explain constraints in sql?

1009


How to test for null values?

1005


How do you write an inner join query?

915


How many types of primary keys are there?

1000


What is the difference between pl and sql?

1061


What packages are available to pl/sql developers?

1012


What is the difference between the repeatable read and serializable isolation levels? : Transact sql

1044


Does execute immediate commit?

1178


Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)

913


Explian rowid, rownum?

977


What is pragma in sql?

1043