To find second largest salary in Employee table
Answer Posted / amit
select max(salary) from employee where salary != (select max
(salary) from employee)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How can we determine what objects a user-defined function depends upon?
Determine when to use stored procedure to complete sql server tasks?
How data can be copied from one table to another table?
What is a trigger in sql server?
Can a synonym name of a table be used instead of a table name in a select statement?
What is @@rowcount in sql?
Explain the steps to create and execute a user-defined function in the sql server?
Delete duplicate rows without using rowid.
Differentiate between delete and truncate.
Tell me what is difference between clustered and non clustered index?
What is user defined stored procedures?
what is create database syntax? : Sql server database administration
What is the difference between insensitive and scroll cursor?
Why union all is faster than union?
How to replace null values in expressions using isnull()?