I Have Employee table having column name as ID,SALARY
how to get second max salary from employee table with id
ex
ID SALARY
1 20000
7 37000
2 5000
Answer Posted / kavitha
select * from emp as a
where sal < 2 from emp as a1
on
(
a.idno=a1.idno
)
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is snapshot parameter in ssrs?
Tell me what is sql profiler?
Can we insert data if clustered index is disabled?
What is normalization 1nf 2nf 3nf?
What is the current limitation of the size of SQL Azure DB?
How do I completely remove sql server instance?
how to avoid cursors? : Sql server database administration
When you should use a low fill factor?
What is a partition function in sql server?
Explain about analysis services?
Difference between Inner vs outer joins?
What is @@error in sql?
What do you mean by normalisation?
What are the new features introduced in SQL Server 2000 (or the latest release of SQL Server at the time of your interview)? What changed between the previous version of SQL Server and the current version?
Explain primary key and foreign key constraints?