how to calcuate the second highest salary of he employee
Answer Posted / lalit
select name, sal from (select name,sal from emp where sal<(select max(sal) from emp) order by sal desc)where rownum=1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
which command using query analyzer will give you the version of sql server and operating system? : Sql dba
How bulk collect improves performance?
Why do we go for stored procedures?
Is primary key an index?
What does (+) mean in sql joins?
What has stored procedures in sql and how we can use it?
What are different types of queries in sql?
what is sub-query? : Transact sql
what are numeric data types? : Sql dba
How do I delete a trigger?
What is difference between joins and union?
What are the uses of sysdate and user keywords?
What are the types of optimization?
Can we call procedure in select statement?
how to create a new view in mysql? : Sql dba