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

How to make conditional sum in ssrs?

130


What is the difference between for trigger and after trigger?

541


Explain insert into select statement?

518


What is 3nf normalization form?

559


Differentiate between SQL and ORACLE joins and write their syntax.

585






Difference between primary key and clustered index?

500


Can I run multiple instances of sql server 2000 at the same time on one computer?

589


How to connect of datebase with sql express.?

618


What is the cartesian product of table?

537


What is lookup override?

584


Explain data warehousing in sql server?

600


What command would you use to add a column to a table in sql server?

741


Distinguish between nested subquery and correlated subquery?

543


Write the SQL query to drop, truncate and delete table.

548


What is normalization and denormalization in sql server?

535