how to find the second highest salary from emp table?
Answer Posted / amy
select TOP salary from employee where salary in( select TOP 2 salary from employee order by salary desc) order by salary asc
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the sql commands?
What are sql ddl commands?
What is benefit of creating memory optimized table?
Explain the uses of a database trigger?
What is primary key and unique key?
How long it takes to learn pl sql?
What is the difference between the sql*loader and import utilities? : aql loader
What is the most common sql injection tool?
What is pl sql code?
What is the difference between numeric and autonumber?
what is a composite key ? : Sql dba
How do you write an inner join query?
Is primary key clustered index?
Is there a way to automate sql execution from the command-line, batch job or shell script?
Which table is left in join?