Skip to content

Commit 2a28def

Browse files
addressing sql-docs issue 4608
1 parent 43d1a38 commit 2a28def

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

docs/t-sql/queries/select-order-by-clause-transact-sql.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,20 +386,19 @@ ORDER BY DepartmentID
386386
```
387387

388388
#### B. Specifying variables for OFFSET and FETCH values
389-
The following example declares the variables `@StartingRowNumber` and `@FetchRows` and specifies these variables in the OFFSET and FETCH clauses.
389+
The following example declares the variables `@RowsToSkip` and `@FetchRows` and specifies these variables in the OFFSET and FETCH clauses.
390390

391391
```sql
392392
USE AdventureWorks2012;
393393
GO
394394
-- Specifying variables for OFFSET and FETCH values
395-
DECLARE @StartingRowNumber tinyint = 1
395+
DECLARE @RowsToSkip tinyint = 2
396396
, @FetchRows tinyint = 8;
397397
SELECT DepartmentID, Name, GroupName
398398
FROM HumanResources.Department
399399
ORDER BY DepartmentID ASC
400-
OFFSET @StartingRowNumber ROWS
400+
OFFSET @RowsToSkip ROWS
401401
FETCH NEXT @FetchRows ROWS ONLY;
402-
403402
```
404403

405404
#### C. Specifying expressions for OFFSET and FETCH values

0 commit comments

Comments
 (0)