how to find the second highest salary from emp table?
Answer Posted / prasanna
select A.* from employee A where 1=(select count(distinct
B.sal) from employee B where B.sal>A.sal)
| Is This Answer Correct ? | 63 Yes | 71 No |
Post New Answer View All Answers
Can we edit a view in sql?
What is percent sign in sql?
Which nosql database is best?
What are the different types of tables in sql?
Define implicit and explicit cursors.
What is difference between db2 and sql?
What is insert command in sql?
How do you modify a trigger?
What is a database? Explain
Which table is left in left join?
What are different types of functions in sql?
What is sqlca in db2?
What is the main reason behind using an index?
which tcp/ip port does sql server run on? : Sql dba
what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba