Write a query to find second highest salary of an employee.
Answer Posted / sathish p
select e1.* from (select ename,sal,rank()
over(order by sal) rank from emp) e1
where e1.rank=2;
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is group function in sql?
what is schema? : Sql dba
How to write pl sql program in mysql command prompt?
Is sql database free?
Which query operators in sql is used for pattern matching?
What is difference between stored procedure and trigger?
Explain what is an index?
What are different types of indexes?
What is rownum in sql?
Can we join two tables without common column?
how to enter characters as hex numbers? : Sql dba
Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?
What is #table in sql?
Can a select statement fire a trigger?
What types of commands can be executed in sql*plus?