how do we find every fifth record in a table

Answer Posted / srivatsa p

Select Top 1 * From (Select Top 5 * From customers Order By
1 Asc) X Order By 1 Desc

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you size a resultset?

492


How to convert a numeric expression from one data type to another?

489


Do you know data definition language, data control language and data manipulation language?

618


How to create a user to access a database in ms sql server using "create user" statements?

512


Would you store your query in a ssrs report or a database server? State the reason why?

108






How many categories of functions based their return modes?

580


What do you mean by sql server agent?

530


When would you use a before or after trigger?

480


explain what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

459


Define candidate key, alternate key, and composite key.

528


Does the unique constraint create an index?

553


How can you ensure that the database and sql server based application perform well?

623


Differentiate between delete and truncate.

569


What is wide table?

523


What is the difference between implicit and explicit transaction?

550