what is syntex second or third highest salary.
thanks & Regards
Dhirendra sinha
Answer Posted / vikas kant
---To get 2nd highest salary----
select Top 1 salary from Emp where marks in(select top 2
salary from Emp order by salary desc)
---To get 3rd highest salary----
select Top 1 salary from Emp where marks in(select top 3
salary from Emp order by salary desc)
Regards Vikas Kant
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Scalability, Availability, Integration with internet, etc.)?
Can we call stored procedure in trigger?
What are horizontal and vertical scaling?
How do you delete duplicate records in sql server?
What command must you use to include the not null constraint after a table has already been created?
What are alternate keys?
How to make conditional sum in ssrs?
Do comments need to go in a special place in sql server 2005?
What is nested transaction?
How to count groups returned with the group by clause in ms sql server?
Explain different types of self contained sub query?
How to maintain a fill factor in existing indexes?
What is the use of nvl work?
Can I save my report as html, excel or word? : sql server management studio
which backup strategy you are following at ur company