how to find the second highest salary from emp table?
Answer Posted / krishna kishore
select top 1 salary from emp where salary in
(select top 2 salary from emp order by salary desc)
order by salary
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is integrity in sql?
Why cross join is used?
What is the limitation on the block size of pl/sql?
What is pl/sql table? Why it is used?
What is full join?
Any attempt to navigate programmatically to disabled form in a call_form stack is allowed?
How do I find sql profiler?
What is the difference between execution of triggers and stored procedures?
The in operator may be used if you know the exact value you want to return for at least one of the columns.
What is varchar sql?
Why do we use set serveroutput on?
what is the command line end user interface - mysql? : Sql dba
Is sql procedural language?
how to run 'mysql' commands from a batch file? : Sql dba
What will you get by the cursor attribute sql%notfound?