how do we find every fifth record in a table
Answer Posted / avinash
SELECT employeeID from ( Select ROW_NUMBER() OVER ( order by id )as RowNumber,employeeID FROM Employee ) as x where x.RowNumber % 5 = 0
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to update muliple row in single query?
What is the New in SQL server 2008?
What are the differences between web role and worker role?
Indexes are updated automatically is the full-text index also updated automatically?
What does it mean to invest in the index?
What is report rendering ?
how to determine the service pack currently installed on sql server? : Sql server database administration
Explain the steps needed to create a scheduled job?
What is cte (common table expression)?
What are the restrictions that views have to follow? : SQL Server Architecture
Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?
What do you mean by collation recursive stored procedure?
What are policy management terms?
How would you choose between a clustered and a non-clustered index?
What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration