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
Can a procedure in a package be overloaded?
Explain constraints in sql?
Does truncate need commit?
How many clustered indexes can you have?
Is join and inner join the same?
How do I know if I have sql express or standard?
Why self join is used in sql?
What is dcl in sql?
Why do we create stored procedures & functions in pl/sql and how are they different?
Which column of the user triggers data dictionary view displays the database event that will fire the trigger?
how to delete an existing column in a table? : Sql dba
Can we use rowid as primary key?
What is sql partition function?
Is mariadb nosql?
Is left join inner or outer?