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
Two pearl strands side by side on velvet, matched bead for bead, one pearl in the second strand a warmer shade.

Comparing Data Between Two Tables

January 29, 2014
Pinal Dave
SQL Tips and Tricks
Duplicate Records, SQL Joins, SQL NULL, SQL Scripts, SQL Server

Comparing data between two tables uses EXCEPT, full joins, and hashes, with explicit NULL and duplicate rules for trustworthy results.

Read More
Gouache painting of a tidy archive room with rows of plain wooden drawers, a brass key ring hanging on a hook and a magnifying glass resting on an open ledger with blank pages, one drawer handle painted vermilion.

Data Governance: Catalog, Lineage and Data Quality

January 14, 2014
Pinal Dave
SQL Tips and Tricks
Data Observability, Database, Duplicate Records, SQL NULL, SQL Server Security

Data Governance is how you know what data you have, where it came from, who can see it and whether it is right. This post covers the catalog, lineage, access and data quality, with T-SQL checks you can run.

Read More
Two middle pasta bundles stand in a wooden measure between shorter and longer bundles

Median on Big Tables: PERCENTILE_CONT vs a Two-Row Seek

November 5, 2013
Pinal Dave
SQL Tips and Tricks
Mathematics, SQL Index, SQL NULL, SQL Order By

Two ways to get a median, one tiny demo, and the traps in NULLs, even counts and empty tables. Then measure on your own server.

Read More
A row of meshed brass gears getting smaller, ending in a tiny red gear, one broken gear set aside

The PRODUCT Aggregate: Multiplying Values Across Rows

October 22, 2013
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Function, SQL NULL, SQL Server

Use the PRODUCT aggregate in SQL Server 2025 for growth factors and independent probabilities, with checks for NULL, zero, and precision.

Read More
A rose branch pressing a red doorbell in the wind with nobody at the door.

UPDATE() in a Trigger Is True Even When Nothing Changed

September 21, 2013
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL NULL, SQL Server, SQL Trigger

Understand why UPDATE() in a trigger fires for unchanged SET values and log only real changes with inserted and deleted row comparisons.

Read More
Three tall windows with pale blinds set at different angles, sunlight falling in strips across the floor.

Query Options in SSMS: Settings That Change Your Results

August 26, 2013
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Scripts, SQL Server Configuration, SQL Server Management Studio

Query Options are the per-window settings in SSMS that change how a query runs and how its results look. This post covers results to grid, text or file, the character limits that cut long values, the SET options that change answers, and why SSMS and your application can disagree.

Read More
A pale jigsaw puzzle with one red piece fitting into the gap and two loose gray pieces lying to the side.

Joining Tables in SQL Server: INNER, LEFT and FULL Joins

August 8, 2013
Pinal Dave
SQL Tips and Tricks
Database, SQL Joins, SQL NULL, SQL Scripts, SQL Table Operation

Joining Tables lets one query combine rows from two tables that share a value. This post uses small Customers and Orders tables to show what INNER, LEFT and FULL OUTER joins return, how many rows each one gives, and how to read the rows that have no match.

Read More
Previous 1 2 3 4 5 6 7 8 … 12 Next
  • Books
  • Testimonials
  • Privacy Policy

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