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 to download and install the scaled-down database adventureworkslt?
Define normalisation?
Tell me what is fill factor?
How to connect a database with sql express.?
What are examples of triggers?
What is an index. What are the types?
How to get a list of table columns using the "sp_columns" stored procedure in ms sql server?
What is 5nf in normalization form?
Do you know how to make remote connection in database?
as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration
Explain different backup plans?
What is an example of a primary key?
What are cursors stored procedures and triggers?
What you can do to delete a table without the delete trigger firing?
What is filter index?