how do we find every fifth record in a table
Answer Posted / santhi k
Using Top N analysis....
select * from (select rownum rn, col1,col2,col3 from
tablename) where mod(rn,5)=0;
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
How to provide values to user defined function parameters?
What are xml indexes?
What is resource governor in sql server?
What are key constraints?
Do you know what guidelines should be followed to help minimize deadlocks?
How much does sql server 2016 cost?
What is the difference between join and inner join?
Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?
Is foreign key unique?
What are entities and relationships?
What is a join in sql? What are the types of joins?
Explain about builtinadministrator?
What is the difference between index seek vs. Index scan?
Explain in details security in SQL azure?
How to find the source of a table in sql server?