how to find the second highest salary from emp table?
Answer Posted / rameshwari
select ename,esal from
(select ename,esal from hsal
order by esal desc)
where rownum <=2;
| Is This Answer Correct ? | 123 Yes | 242 No |
Post New Answer View All Answers
How do I tune a sql query?
what are the system privileges that are required by a schema owner (user) to create a trigger on a table?
how to get @@error and @@rowcount at the same time? : Sql dba
Why select is used in sql?
What is 19 null in sql?
Explian rowid, rownum?
how to create a new table by selecting rows from another table in mysql? : Sql dba
What is oracle and pl sql?
What is a schema? How is it useful in sql servers?
What is pessimistic concurrency control? : Transact sql
Can we perform dml on view?
What are pl sql procedures?
How to execute a stored procedure?
What is #table in sql?
What is difference between stored procedures and application procedures?