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 reference section?
How to run queries with sql server management studio express?
What is sql server programming?
How to download and install microsoft sql server management studio express?
What is the purpose of data source?
What is a sql join?
What is cte (common table expression)?
What is a with(nolock)?
What is the difference between web edition and business edition?
List some case manipulation functions in sql?
Is sql server implemented as a service or an application? : Sql server database administration
List the different types of collation sensitivities in sql server?
What is report rendering ?
How do you identify a foreign key?
Comment,Datatypes are unlimited