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 / elumalai.k
select id,max(salary)from employee where salary<(select
max(salary)from employee)
| Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
What is a bit datatype?
What are the different authentication modes in sql server? How can it be changed?
Why people hate cursor?
Give a example to search fr a string in all stored procedure in sql server.
Explain differences between web edition and business edition?
Explain about system database?
Define outer join?
Explain the truncate command?
What the different components of Replication and what is their use?
To which devices can a backup be created and where should these devices be located? : sql server management studio
What do you understand by the data quality services in sql server?
Difference between Logical Page and Physical Page in SSRS.
What are subqueries in sql server?
What is a transact-sql statement?
What is 2nf normalization form?