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
What is delimiter sql?
Which command is used to delete a trigger?
What are different functions in sql?
Can you select everything, but 1 or 2 fields, without writer's cramp?
What are sql functions? Describe in brief different types of sql functions?
What is gpt format?
what is a view? : Sql dba
what are the t string functions available in tsql? : Transact sql
Which tcp/ip port does sql server run on? How can it be changed? : Sql dba
What are pl sql data types?
Is sql easier than java?
How to avoid using cursors? What to use instead of cursor and in what cases to do so?
how to see the create table statement of an existing table? : Sql dba
How do I create an index in word?
What is difference between rank () row_number () and dense_rank () in sql?