This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
SQL SERVER - Interview Questions and Answers - Guest Post by Rick Morelan - Day 27 of 31

SQL SERVER – Interview Questions and Answers – Guest Post by Rick Morelan – Day 27 of 31

July 27, 2011
Pinal Dave
SQL Interview Questions and Answers
SQL Order By, SQL Scripts, SQL Server, SQL Server Security

A guest post by Rick Morelan, author of the Joes 2 Pros series, on the few interview questions that come up again and again and separate good answers from great.

Read More
A row of mugs on kitchen hooks, one mug per hook, except one hook holding two mugs together.

ROWS vs RANGE in Window Frames: Why Running Totals Differ

May 4, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Order By, SQL Scripts, SQL Server

Compare ROWS vs RANGE for running totals, handle tied sort values, write explicit frames, and check worktable reads on your server.

Read More
Hands feeding a long knotted rope into harbor water, a red rag tied at a knot far down the line

OFFSET FETCH Paging and Its Deep Page Problem

April 5, 2011
Pinal Dave
SQL Performance
SQL Order By, SQL Paging, SQL Performance, SQL Server

Use OFFSET FETCH with a unique sort order, compare early and deep page reads, and decide when a cursor based approach fits better.

Read More
Glass bottles on a windowsill arranged tallest to shortest, one short vermilion bottle out of place in the middle.

Sorting Correctly: Collation and ORDER BY

February 10, 2011
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL NULL, SQL Order By, SQL Server

Collation and ORDER BY decide case, accent, and text-number order; choose rules explicitly when one report needs different sorting.

Read More
A thick open book with a vermilion ribbon bookmark deep in its pages, reading glasses resting on it under a lamp.

Pagination With OFFSET and FETCH

July 26, 2008
Pinal Dave
SQL Performance
SQL Index, SQL Order By, SQL Paging, SQL Server

OFFSET and FETCH make page-number queries readable, but deep pages scan past prior rows; keyset pagination keeps the next page focused.

Read More
A wooden cribbage board on a cafe table, a red peg marking where play stopped

Keyset Pagination: Next and Previous Pages Without OFFSET

November 5, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Order By, SQL Paging, SQL Server

Build keyset pagination with a matching index, unique tie breaker, next and previous queries, and a fair deep-page comparison with OFFSET.

Read More
Z-A ordering by letters.

SQL SERVER – Order of Result Set of SELECT Statement on Clustered Indexed Table When ORDER BY is Not Used

September 24, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Order By, SQL Server

“What will be the order of the result set of a SELECT statement on clustered indexed table when the ORDER BY clause is not used?”

Read More
Previous 1 2 3
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com