Retrieve every n values

this scripts presents the way to retrieve from a given result set the values given n where n determines that the Nth value,2N th values , 3Nth value will be returnedin the example n = 3 the returning rows are 22,32,42the given set is 20,21,22,30,31,32,40,41,42

2002-08-01

425 reads

Blogs

Regression Testing SQL Saturday Naming

By

I started a poll today on the naming for future SQL Saturdays. You can...

Daily Coping 9 Apr 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Error creating Azure SQL Database

By

A quick post today, quite simply, the error message is: “code”: “ConflictingDatabaseOperation”,  “message”: “Operation on server x and database y is in progress.  Please wait a few minutes before trying again.” What...

Read the latest Blogs

Forums

Easing Back to the Office

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Easing Back to the Office

Missing Data

By Joe Celko

Comments posted to this topic are about the item Missing Data

Password Policy

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Password Policy

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers