Skip to content

Instantly share code, notes, and snippets.

@dalmat36
Last active August 29, 2015 13:57
Show Gist options
  • Save dalmat36/9488062 to your computer and use it in GitHub Desktop.
Save dalmat36/9488062 to your computer and use it in GitHub Desktop.
/*OFFSET FETCH Filter
Offset by 5 and filter next 5 rows*/
SELECT orderid, orderdate, custid, empid
FROM Sales.Orders
ORDER BY orderdate, orderid
OFFSET 5 ROWS FETCH NEXT 5 ROWS ONLY;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment