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
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
Plain brass adjustment knobs and a small measuring tool grouped on a warm wooden surface.

Server Settings Worth Checking on Any New Instance

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

Review SQL Server configuration for memory, parallelism, tempdb, file growth, and backups before a new instance becomes a production surprise.

Read More
Previous 1 … 561 562 563 564 565 566 567 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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