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
What is Lock table in SQL?
Can we add an identity column to decimal datatype?
Explain the difference between function and stored procedure?
How to generate create table script on an existing table in ms sql server?
Explain alternate key, candidate key and composite key in sql server?
what is the information that can be stored inside a bit column? : Sql server database administration
List out different types of normalizations in sql server and explain each of them?
Explain how many types of relationship?
Can we call future method from trigger?
What is best institute to Learn DotNET And SQL in chennai?
What are the disadvantages of primary key and foreign key in SQL?
what is the difference between count(*) and count(1) ?
Determine how to use the inserted and deleted pseudo tables?
How to check parameter value in stored procedure sql server?
Explain about unique identifier data type in sql server?