File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
392392USE AdventureWorks2012;
393393GO
394394-- Specifying variables for OFFSET and FETCH values
395- DECLARE @StartingRowNumber tinyint = 1
395+ DECLARE @RowsToSkip tinyint = 2
396396 , @FetchRows tinyint = 8 ;
397397SELECT DepartmentID, Name, GroupName
398398FROM HumanResources .Department
399399ORDER 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
You can’t perform that action at this time.
0 commit comments