how to find the second highest salary from emp table?
Answer Posted / nitin
SQL> select emp_sal from (select emp_sal from nitin order
by emp_sal desc) group by rownum,emp_sal
having rownum=2;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between having clause and where clause?
what are the 'mysql' command line options? : Sql dba
Is merge a dml statement?
Can we write ddl statements in functions?
What is the purpose of the partition table?
What is insert command in sql?
How can we implement rollback or commit statement in a trigger?
How many commands are in sql?
What is trigger types of trigger?
Can you skip header records while loading? : aql loader
What is a recursive stored procedure?
List out the acid properties and explain?
Is sql similar to python?
What are the three pl sql block types?
Can we create view in stored procedure?