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
Explian rowid, rownum? What are the psoducolumns we have?
how to get @@error and @@rowcount at the same time? : Sql dba
What is meant by cursor in sql?
What are local and global variables and their differences?
Why is sharding used?
Is progress software supports to ( pl/sql )?
How do I partition a table in sql?
Should I use mbr or gpt?
How can I make sql query run faster?
Is pl sql a scripting language?
Is trigger a stored procedure?
How to pipe multiline string to isql?
what is 'mysqld'? : Sql dba
How do you use join?
What version is sql?