how do we find every fifth record in a table
Answer Posted / saurabh tyagi
select id ,partcode from prt where id in
(
select case when row_number() over (order by partcode ) %
5 = 0
then row_number() over (order by
partcode)
else 0 end
from prt
)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can you start sql server in different modes?
How to attach adventureworkslt physical files to the server?
On a windows server 2003 active – passive failover cluster, how do you find the node which is active?
What is SQL Azure Federations?
Do you know what are acid properties?
What is ms sql server reporting services?
What is subreport?
What are the steps to process a single select statement?
What are various aggregate functions that are available?
What are different type of Collation Sensitivity?
Tell me about normalization in DBMS.
What is a Join and explain its types?
How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?
What is difference in performance between insert top (n) into table and using top with insert?
What do you understand by coalesce in sql server?