how to find the second highest salary from emp table?
Answer Posted / jyotiprokash
Select * from emp e1 where 1=(select count(distinct sal) from emp e2 where e1.salary<e2.salary)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what is sql in mysql? : Sql dba
How to fix oracle error ora-00942: table or view does not exist
Which kind of parameters cannot have a default value in pl sql?
explain the difference between delete , truncate and drop commands? : Sql dba
Show how functions and procedures are called in a pl/sql block.
What is snowflake sql?
Is pl sql a programming language?
How many joins in sql?
who introduced sql?
Why do you partition data?
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba
How do you update f as m and m as f from the below table testtable?
What are types of indexes in sql?
Explain the difference between triggers and constraints?
what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba