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
Where do you find the default Index fill factor and how to change it?
What is dbcc command in sql server?
What is the difference between dataadapter and datareader?
What does it mean to invest in the index?
What are the differences between web role and worker role?
How to find which stored procedure is currently running in sql server?
How to change the data type of an existing column with "alter table" statements in ms sql server?
why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration
How to connect to a sql server using odbc_connect()?
How to use column default values in insert statements in ms sql server?
How to add a new dsn with the odbc driver for sql server?
Difference between connected and disconnected database in .net with sql server?
What triggers long term care?
What is the recovery model?
what's the difference between a primary key and a unique key? : Sql server database administration