Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / reddy
select distinct (a.sal) from emp a where &n = (select count
(distinct(b.sal) from emp bmwhere a.sal<=b.sal)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is the difference difference between procedure and packages
What is the difference between sql and isql*plus?
Is delete faster than truncate?
What is the difference between a procedure and a function?
Is sql a programming?
what is the difference between delete and truncate statement in sql? : Sql dba
How do I make sql search faster?
Which tcp/ip port does sql server run?
What is oracle and pl sql?
If the application is running very slow? At what points you need to go about the database in order to improve the performance?
How do I trace sql profiler?
what is data integrity? : Sql dba
How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000
When you have to use a default "rollback to" savepoint of plvlog?
How to fetch values from testtable1 that are not in testtable2 without using not keyword?