To find second largest salary in Employee table
Answer Posted / vikas kant
select Top 1 salary from emp_Table where salary in(select
Top 2 Salary from emp_Table order by salary desc)
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
When would you use sql joins?
How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?
What is a functions and types in sql server?
What is the difference between substr and charindex in the sql server?
How network traffic be reduced by using the stored procedure?
Do you know spatial data types - geometry and geography in sql server 2008?
How to invoke a trigger on demand?
What are the benefits of filtered indexes?
What is Transparent Data Encryption?
What are the differences between local and global temporary tables?
Which sql server is best?
What command must you use to include the not null constraint after a table has already been created?
Explain triggers in sql?
What is set nocount on and what is set nocount off?
What is a data source or ds? : sql server analysis services, ssas