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
What is compound trigger?
Explain what is a subquery ?
What is a sql instance vs database?
what is the difference between a having clause and a where clause? : Sql dba
Explain constraints in sql?
How to test for null values?
How do you write an inner join query?
How many types of primary keys are there?
What is the difference between pl and sql?
What packages are available to pl/sql developers?
What is the difference between the repeatable read and serializable isolation levels? : Transact sql
Does execute immediate commit?
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)
Explian rowid, rownum?
What is pragma in sql?