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
SELECT statement with multiple columns.

SQL SERVER – OVER clause with FIRST _VALUE and LAST_VALUE – Analytic Functions Introduced in SQL Server 2012 – ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING

November 10, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

Why does LAST_VALUE change on every row? It is not a bug. The window frame explains it, and ROWS BETWEEN UNBOUNDED PRECEDING and FOLLOWING fixes it.

Read More
SQL Server Analysis Tool Window.

SQL SERVER – Introduction to FIRST _VALUE and LAST_VALUE – Analytic Functions Introduced in SQL Server 2012

November 9, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

An introduction to FIRST_VALUE and LAST_VALUE, new analytic functions in SQL Server 2012 that return the first and last value from a list.

Read More
One dovetail spline is removed while another still joins two wooden boards

DENY vs REVOKE: Why a Removed Permission Still Works

November 8, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

You revoked a permission, but the user can still read the table. Here is why, and how DENY and REVOKE really differ.

Read More
An SQL Server results window.

SQL SERVER – Introduction to CUME_DIST – Analytic Functions Introduced in SQL Server 2012

November 8, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

An introduction to CUME_DIST, a new analytic function in SQL Server 2012 that returns the cumulative distribution of a value, with an example.

Read More
A fish scaler beside two headless fillets with smooth and overlapping scaled skin

Checking Data Compression Settings on Every Table and Index

November 7, 2011
Pinal Dave
SQL Performance
Database, SQL Scripts, SQL Server

A table is not simply compressed or not. Here is how to read the setting for each index and partition, and the mistake that leaves indexes full size.

Read More
SQL SERVER - Updating Data in A Columnstore Index

SQL SERVER – Updating Data in A Columnstore Index

November 6, 2011
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts

A reader got an error when updating data in a columnstore index table. Here is why the table becomes read-only and what you can do about it.

Read More
Wool carders beside eight nearly equal bundles of cream wool

Splitting Work Into Equal-Sized Batches With NTILE

November 4, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

NTILE deals 100 customers into eight batches in one query. The catch is keeping those batches stable while new rows arrive.

Read More
Previous 1 … 216 217 218 219 220 221 222 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

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