how do we find every fifth record in a table
Answer Posted / krishans
SELECT RowNumber from ( Select ROW_NUMBER() OVER (order by
EmployeeID)as RowNumber
FROM Employee) as x
where x.RowNumber % 5 = 0
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is function of CUBE ?
How fixed length strings are truncated and padded?
How can you control the amount of free space in your index pages?
What are statistics?
what is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration
Write a program to fetch first 10 records from a file?
How to execute a stored procedure in ms sql server?
What is #table in sql server?
Do you know what are acid properties of transaction?
what is the difference between Tabular and Matrix report?
What is indexing and its types?
How to provide values to user defined function parameters?
Can select statements be used on views in ms sql server?
Does sql server 2000 full-text search support clustering?
What are the common performance issues in sql server?