Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / sagar
Select Min(Salary) from Curtest where Salary
in (select Top 2 Salary from Curtest order by salary desc)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between left and right outer join?
a table has 2 classifications 1)liabilities 2)earnings this liabitity has 2 elements with 2 input values and the earnings have 2 elements with 2 input values i wrote a query so that my input is liability savings amount1 amount2 xxxx null xxxxxx 0 xxx1 null xxxxx1 0 null yyyy 0 yyyy null yyy1 0 yyy1 my problem is --when i developed a report(d2k) with this data my o/p is liabilities,amount1,savings,amount2 xxxx xxxxxx xxx1 xxxxx1 yyyy yyyy yyy1 yyy1 how could i move this savings,savings values 2 palces up. can any body provide me witha better solution
Is time a data type in sql?
What found sql?
What is inner join in sql?
how to rename an existing table in mysql? : Sql dba
what is a record in a database ? : Sql dba
what is sql profiler? : Sql dba
Can we call a function containing dml statements in a select query?
what is table? : Sql dba
What are sql*plus environment variables?
What are the two types of exceptions.
Explain the savepoint statement.
How do I filter in sql profiler?
Can we join more than 2 tables in sql?