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
Give main differences between "Truncate" and "Delete".
How to verify the port number of the sql server?
my name is sejal I have cleared the sbi clerk exam. I am BCA graduate My favorite subject RDBMS Relational database management system. so please send me rRDBMS related interview questions
What is the largest component inside a field?
How do you drop an index?
How can I tell if sql server is 32 or 64 bit?
How to check what was the last restore transaction LSN in Log shipping or Mirroring? when we don't have a Monitor or witness server.
How to use copy and concatenate commands in SQL?
What is dirty page?
What do you understand by triggers?
what data regions are and what are the different data regions?
What is function of CUBE ?
What are the 10 characteristics of data quality?
Explain nested stored procedure. Syntax and an example for create nested stored procedure?
Explain the purpose of indexes?