how do we find every fifth record in a table

Answer Posted / kumar.t

Table Name Is Employee
EmployeeId Is Identity field

Select * From Employee Where EmployeeId In (Select
EmployeeId From Employee Where EmployeeId%5=0)

by
Kumar.T

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

541


What is filtered index?

660


Define synonym?

732


What are the differences between char and varchar in ms sql server?

581


Delete duplicate rows without using rowid.

1077






Please differentiate between a local and a global temporary table?

574


what is the difference between openrowset and openquery?

590


What are the two modes of authentication in sql server?

527


How to verify a user name with sqlcmd tool?

587


How to sort the query output with order by clauses in ms sql server?

637


Why olap is used?

573


How do I view a script in sql server?

540


What is user-defined functions? What are the types of user-defined functions that can be created?

572


What are acid properties of transaction?

556


What is change data capture (cdc) in sql server 2008?

566