how to find the second highest salary from emp table?
Answer Posted / shivdas suryawanshi
select salary from emp where salary=(select max(salary)
from emp where salary < (selct max(salary) from emp));
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is database migration?
What is rownum in sql?
what is a database transaction? : Sql dba
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
Do ddl statements need commit?
What plvcmt and plvrb does in pl/sql?
Is sql sequential or random?
Can we call dml statement in function?
How do you update f as m and m as f from the below table testtable?
What is delimiter in pl sql?
What is execution plan in sql?
Can we use joins in subquery?
What are the parts of a sql statement?
What is embedded sql in db2?
What is string join?