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
What happens if you add a new index to large table?
What are audit control procedures?
What is resource db in sql server?
How to enable tcp/ip protocol on a sql server?
what type of index will get created after executing the above statement? : Sql server database administration
Which trace flags are enabled in sql server?
What do you mean by an execution plan? Why is it used? How would you view it?
How do you delete a trigger?
Does order by actually change the order of the data in the tables or does it just change the output?
What happens if an integer is too big for int date type?
What is rank function?
How do we synchronize On-Premise SQL server with SQL Azure?
How to create a large table with random data for index testing in ms sql server?
How to execute a stored procedure in ms sql server?
What is stored in the mssqlsystemresource database? : sql server database administration