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
What is a domain constraint give an example?
What is the difference between char, varchar and nvarchar?
How to find tables without indexes?
Explain the properties of a relational table?
do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration
How to integrate the ssrs reports in application?
What is merge?
what stored procedure would you use to view lock information? : Sql server administration
What is CTE in SQL
What are the different types of collation sensitivity in sql server?
Can we call stored procedure in view in sql server?
What are the different types of Indexes available in SQL Server?
Does group by sort data?
How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?
While using a cursor, how can you differentiate between a deleted row and a row that has been inserted with null data values?