Write a query to find second highest salary of an employee.
Answer Posted / dilip
select rank,sal from(select rownum rank,distinct(sal) from
emp order by sal desc)
where rank=2;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we create table inside stored procedure?
What is data type in sql?
What is sql dialect?
Which nosql database is best?
Can a trigger call a stored procedure?
I need a function for a train ticket reservation please answer it thanks in advance
What is the clause we need to add in function body to return variable?
Can a select statement fire a trigger?
what is a trigger in mysql? : Sql dba
What is difference between mysql and postgresql?
If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????
How do I truncate a word?
What is the difference between truncate and drop statements?
what is a stored procedure? : Sql dba
What is union?