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
Explain the disadvantages/limitation of the cursor?
What are the properties of the transactions?
How to create a simple user defined function in ms sql server?
Explain what is cte (common table expression)?
Explain transaction server implicit?
Explain few examples of RDBMS?
when you create a database how is it stored? : Sql server database administration
Explain error and transaction handling in sql server?
Explain the concept of recursive stored procedure.
Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security
How do triggers work?
When cursors are useful?
Describe in brief system database.
Give an example of SQL injection attack ?
How do I create a stored procedure in sql server?