Write a query to find second highest salary of an employee.

Answer Posted / vamana murthy

select ename,salary from emp
where rownum=2
order by salary desc

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the syntax used for partition in tsql? : Transact sql

540


Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?

1685


How does sql profiler work?

570


What does sql stand for?

548


how to delete an existing column in a table? : Sql dba

554






Define implicit and explicit cursors.

630


What is %rowtype in pl sql?

513


Explain isolation levels. : Transact sql

579


What is difference between ms sql and mysql?

476


What is cross join sql?

502


how to convert character strings to numeric values? : Sql dba

578


What is nvarchar max in sql?

583


What is the least restrictive isolation level? : Transact sql

565


How do I view output in sql developer?

578


What is varchar data type in sql?

520