Select from x th row next y rows

This code will show rows from 17th and then next 3 ordered by name from table authors in database pubs. Table must have primary key and of course ordered column. You can change value 'from' in line 'SET ROWCOUNT 17' and value 'next' (how many rows)in line SELECT TOP 3. It is good to show […]

2004-10-21 (first published: )

180 reads

Blogs

Using Visual Studio Code

By

I’m a creature of habit. I have my routine when I get to my...

Docker Containers and Persistent Data

By

(Be sure to checkout the FREE SQLpassion Performance Tuning Training Plan - you get...

Cursor Dynamic SQL

By

Today was working on SQL Server cursor standard cursor deification would be like this:...

Read the latest Blogs

Forums

Numeric and Decimal

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Numeric and Decimal, which is...

Suspended session

By IMary

Hi, Application service is going to hung state and when we check the database,...

Does blocking has affect on High DTU utilization ?

By ebooklub

Hi, Does blocking has affect on High DTU utilization ?  (some people advocate that...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers