what is syntex second or third highest salary.
thanks & Regards
Dhirendra sinha
Answer Posted / veeresh kethari
with Topsal (EmpID,Ename,Sal,Dno,Topsal) as
(select *,row_number() over(order by sal) Topsal from emp)
select top 2 EmpID,Ename,Sal,Dno from Topsal order by sal desc
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is encryption key?
How does a profiler work?
How to list all dsn entries on your local machine using odbc_data_source()?
what is a join and explain different types of joins? : Sql server database administration
How to use wildcard characters in like operations in ms sql server?
How to write a query with an inner join in ms sql server?
Mention what are the core components of ssrs?
What is acid properties?
What is report snapshot in ssrs?
What do you mean by collation recursive stored procedure?
What is the process of normalising?
How many levels of sp nesting is possible?
Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?
What are the ways available in sql server to execute sql statements?
What is the difference between clustered and non-clustered indexes in ms sql server?