Find out the 3rd highest salary?
Answer Posted / srikanth
select * from (select e.*,rank() over(order by salary desc
nulls last) sal_rnk from employee e)where sal_rnk=3;
Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
Is oracle and sql same?
how to check server status with 'mysqladmin'? : Sql dba
How do you rename a table in sql?
How do rank () and dense_rank () differ?
Which one is better subquery or joins?
What is the sql case statement?
How to run sql commands in sql*plus?
What is dml and ddl?
What are sql functions? Describe in brief different types of sql functions?
i have a column which may contain this kind of value: 123*67_80,12*8889_5,34*8_874 ,12*7_7 (can contain space before a comma, and this string length can be anything) now i want to split this value into two column like: column1: 123*67,12*8889,34*8,12*7 column2: 80,5,874,7 use function for this
How do I partition a table in sql?
What are the rules to be applied to nulls whilst doing comparisons?
How do I start sql profiler?
what is 'mysqlimport'? : Sql dba
what are the advantages and disadvantages of views in a database? : Sql dba