how to find the second highest salary from emp table?
Answer Posted / bharat g
select * from (select ename,sal,dense_rank() over (order by sal desc) ranking from emp) where ranking=2;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is offset and limit in sql?
Is sql free?
Compare sql & pl/sql
How many joins can you have in sql?
What has stored procedures in sql?
What is not equal in sql?
what is a database lock ? : Sql dba
how can we find the number of rows in a table using mysql? : Sql dba
What are the different dcl commands in sql?
What is embedded sql with example?
Is sql better than access?
explain the difference between delete , truncate and drop commands? : Sql dba
what's the difference between a primary key and a unique key? : Sql dba
The in operator may be used if you know the exact value you want to return for at least one of the columns.
Explain the savepoint statement.