Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / priya
select rownum,empno,sal from (select
rownum,empno,sal from emp order by sal desc) group
by rownum,empno,sal having rownum=2;
This will clearly work.............
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What is mdb stand for?
Which software is used for pl sql programming?
Does oracle use sql?
How many functions are there in sql?
How do you break a loop in pl sql?
How sql query is executed?
How do I add a primary key to a table?
What is a schema sql?
What is #table in sql?
Which command is used to call a stored procedure?
Write a query to find the names of users that begin with "um" in sql?
What is full join?
What is db journal file?
Are stored procedures compiled?
what is the syntax used for partition in tsql? : Transact sql