how do we find every fifth record in a table

Answer Posted / shanmugam

with cte as(
select ROW_NUMBER() over (order by id) as serial,* from tablename
)
select * from cte where serial=5

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which autogrowth database setting is good?

615


Name and describe few console utilities for ssrs?

249


What is transaction server consistency?

543


Introduction of rollup clause using sum and group by clause?

534


What is the difference between rank and dense_rank?

505






Explain about service Broker functions?

613


How to list all schemas in a database?

578


Explain active/passive and active/active cluster configurations?

625


what stored procedure would you use to view lock information? : Sql server administration

580


What is the purpose of sql profiler in sql server? : sql server database administration

623


How do you delete a data source?

541


What is importing utility?

549


What is user-defined function?

565


what is the sql equivaent of the dataset relation object ?

1567


What command would you use to create an index?

586