how to find the second highest salary from emp table?
Answer Posted / dinesh rajput
select sal from(select sal from
(select distinct sal from emp order by sal desc)
where rownum<=2 order by sal asc)
where rownum=1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How would you convert date into julian date format?
what are the differences between binary and varbinary? : Sql dba
What are all different types of collation sensitivity?
What does pl sql stand for?
what are the type of locks ? : Sql dba
Explain polymorphism in pl/sql.
Why truncate is used in sql?
Where not exists in sql?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
what are the non-standard sql commands supported by 'mysql'? : Sql dba
How does cross join work?
What is java sql drivermanager?
what are all the different normalizations? : Sql dba
Why is nosql good?
Difference between truncate, delete and drop commands?