To find second largest salary in Employee table
Answer Posted / satish
select salary from emp_Table_1 where 2= (select count(*)
form emp_Table_2 where emp_Table_2.salary < emp_Table_1.salary)
-satish
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain nested trigger in sql?
What are the basic features of a trigger in ms sql server?
How do I find the port number for sql server?
Why do we need different type of parameter?
How to name query output columns in ms sql server?
tell me what are the steps you will take to improve performance of a poor performing query? : Sql server database administration
What is RAID? What are the different types of RAID configurations?
What is the difference between resultset and resultsetmetadata?
Can a table be moved to different filegroup?
What is replication with database mirroring? : sql server database administration
You want to implement the one-to-many relationship while designing tables. How would you do it?
what is memory-optimized nonclustered indexes
What are group functions in query statements in ms sql server?
How would you go about developing a ssrs report?
How to write a query with a full outer join in ms sql server?