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
Gouache painting: in a drum room, two cymbal stands stand side by side

JSON_OBJECT: Decide Whether Missing Values Become Null

December 18, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server 2022

JSON_OBJECT constructs a typed object payload. Choose null or absent properties deliberately and preserve empty strings as present values.

Read More
Gouache painting: a row of four pear trees in an orchard

FIRST_VALUE IGNORE NULLS: Find the First Available Value

November 2, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server 2022

FIRST_VALUE IGNORE NULLS selects the first present value through the current row. Preserve source rows and distinguish first from latest.

Read More
Oak casks in a long cellar row ordered from dark old wood to pale new, a hand resting on one in the middle.

Ordered Columnstore Indexes in SQL Server 2022

May 8, 2009
Pinal Dave
SQL Performance
ColumnStore Index, SQL Index, SQL Server, SQL Server 2022

Build an ordered columnstore index in SQL Server 2022, inspect segment bounds, and compare range-query reads on your own data.

Read More
A hand sorting mixed cutlery into three compartments, one red-handled spoon set apart

Splitting Full Names Into First, Middle and Last in T-SQL

October 28, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server 2022, SQL String

Try splitting full names with T-SQL string functions, preserve token order, and flag suffixes or compound surnames for review.

Read More
A compact brick of pressed tea beside a loose heap of the same leaves, a small red tea knife resting on it.

XML Compression in SQL Server 2022

September 22, 2008
Pinal Dave
SQL Tips and Tricks
Compression, SQL Data Storage, SQL Server, SQL Server 2022, SQL XML

Use XML compression in SQL Server 2022 to reduce XML storage, inspect partition settings, and compare CPU costs on your own workload.

Read More
A row of rain gauges holding different amounts of water

Grouping Dates Into Buckets With DATE_BUCKET

September 14, 2007
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server, SQL Server 2022

DATE_BUCKET groups timestamps into hourly, weekly, and custom intervals, with an origin that determines where every boundary lands.

Read More
Three long shallow trays of blue ceramic pebbles beside a small square tray of six ochre and rust beads.

BIT_COUNT: Count Set Bits Without Changing Integer Width

July 4, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server 2022

BIT_COUNT counts active positions in a typed value. Keep integer width visible and distinguish a missing mask from a zero count.

Read More
Previous 1 … 4 5 6 7
  • Books
  • Testimonials
  • Privacy Policy

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