Categories
SQL

A Distinct-ly Different Approach to NULL Comparisons

Comparisons involving NULL-able values and columns are an early learning experience. I recently stumbled upon a relatively new way to handle these which I thought would be interesting T-SQL to share. Let’s start with an example, retrieving paid invoices for a particular date: If we pass NULL in to retrieve unpaid invoices we’d change the […]

Categories
T-SQL Tuesday

T-SQL Tuesday #204 – Are Blogs Still Relevant?

This month’s T-SQL Tuesday from Jeff asks bloggers to blog about the relevance of blogging in 2026. But there’s an AIlephant in the room here. Jeff alludes to blogging from two perspectives in his invitation: The reader, who consumes the content for their benefit – as Jeff did, making “a massive difference for [his] career […]

Categories
Synapse

When Hash Keys Skew Synapse Tables

In Synapse SQL Pools, Hash distributions allow us to somewhat control data distribution. Whilst this can deliver performance in the right scenarios, I noted last week that these tables should be monitored to avoid skew. In this post I want to demonstrate how to identify the skew, and why a different distribution model may be […]