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
An open wooden box holds blank recipe cards beside a separate stack on a sunlit table.

What Is In the Plan Cache and How to Look

November 19, 2011
Pinal Dave
SQL Performance
Best Practices, SQL Index, SQL Performance, SQL Server

Inspect the SQL Server plan cache, identify single-use plans and memory use, and understand what optimize for ad hoc workloads changes.

Read More
Rank calculation tool window.

SQL SERVER – Introduction to PERCENT_RANK() – Analytic Functions Introduced in SQL Server 2012

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

An introduction to PERCENT_RANK, a SQL Server 2012 analytic function that returns the relative standing of a value in a result set, shown next to RANK.

Read More
Pasta strands arranged along a drying fan, with neighboring strands and a clear group gap

The Previous Row Before LAG Existed: A ROW_NUMBER Self-Join

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

Before LAG, we numbered rows and joined each one to its neighbor. Here is how that pattern works, where ties and NULLs bite, and how LAG compares.

Read More
The red arrow indicates the use of the LEAD and LAG window functions.

SQL SERVER – Puzzle to Win Print Book – Write T-SQL Self Join Without Using LEAD and LAG

November 16, 2011
Pinal Dave
SQL Puzzle
SQL Function, SQL Scripts

Win a print book: write a T-SQL self join that simulates LEAD and LAG, so you can learn a SQL Server 2012 feature even on an earlier version.

Read More
The red arrow indicates the use of the LEAD and LAG window functions.

SQL SERVER – Introduction to LEAD and LAG – Analytic Functions Introduced in SQL Server 2012

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

An introduction to LEAD and LAG in SQL Server 2012: read a value from the next or previous row without a self-join, with an AdventureWorks example.

Read More
A worn wooden pencil beside a fresh pencil and a small plain eraser on a tidy desk.

T-SQL Habits Worth Unlearning

November 14, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Review T-SQL habits that hide intent or create avoidable work, including SELECT star, NOLOCK, row loops, and functions on filtered columns.

Read More
A marquetry press beside panels assembled loosely and directly within a frame

Load Into a Heap or a Clustered Table: Which Bulk Load Wins

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

Loading a heap and indexing it afterward only moves the work. Time the whole pipeline before you pick a winner.

Read More
Previous 1 … 564 565 566 567 568 569 570 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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