SQL Join Flavors

The many faces of JOIN in SQL. | Continue reading


@antonz.org | 1 year ago

I Don't Need Your Query Language

Seriously, I don't. I'd prefer SQL. | Continue reading


@antonz.org | 1 year ago

Python's sqlite3 with extensions

A drop-in replacement for the sqlite3 module, bundled with essential extensions. | Continue reading


@antonz.org | 1 year ago

Covering Index in SQL

Allows executing queries without touching the table. | Continue reading


@antonz.org | 1 year ago

Blogging Myths You Should Care About

If you are an average blogger and not Julia Evans. | Continue reading


@antonz.org | 1 year ago

More String Functions in SQLite

A rich set of string functions, from `slice`, `contains` and `count` to `split_part`, `translate` and `repeat`. | Continue reading


@antonz.org | 1 year ago

SQL Recipe: Compare with Neighbors

Calculate the difference between each record and the previous or next one. | Continue reading


@antonz.org | 1 year ago

Base64 and other encodings in SQLite

Encoding binary data into a textual representation and vice versa. | Continue reading


@antonz.org | 1 year ago

LIMIT vs. FETCH in SQL

According to the standard, we should use be using FETCH. | Continue reading


@antonz.org | 1 year ago

SQL Recipe: Segmenting Data

Assigning each record to a specific segment based on the value of one or more columns. | Continue reading


@antonz.org | 1 year ago

SQL Cheat Sheet

For those who knew SQL, but kinda forgot it. | Continue reading


@antonz.org | 1 year ago

SQL Recipe: Ranking Records

Assigning a rank to each row based on the value of one or more columns. | Continue reading


@antonz.org | 1 year ago

Rolling Aggregates with SQL Window Functions

Moving averages, cumulative totals and other sliding aggregates. | Continue reading


@antonz.org | 1 year ago

Aggregating Data with SQL Window Functions

Comparing individual values with totals and averages. | Continue reading


@antonz.org | 1 year ago

AI SQLite Assistant

Ask AI to explain or troubleshoot your SQL query in a playground. | Continue reading


@antonz.org | 1 year ago

Compact Objects in Python

Tuple vs dataclass, until numpy interferes | Continue reading


@antonz.org | 2 years ago

JSON and Virtual Columns in SQLite

Faster JSON handling in a relational database. | Continue reading


@antonz.org | 2 years ago

The SQLite Extension Set

Regexes, math, file IO and over 100 other functions. | Continue reading


@antonz.org | 2 years ago

How Python List Works

And why some methods take constant time while others take linear. | Continue reading


@antonz.org | 3 years ago

Good Code Criterion

Optimize T, keep an eye on R. | Continue reading


@antonz.org | 3 years ago

SQLite is not a toy database

Here is why SQLite is a perfect tool for you - whether you are a developer, data analyst, or geek. | Continue reading


@antonz.org | 3 years ago

How to create a 1M record table with a single query

Let’s say you want to check how a query behaves on a large table - but there is no such table at hand. This is not a problem if your DBMS supports SQL recursion: lots of data can be generated with a single query. The WITH RECURSIVE clause comes to the rescue. | Continue reading


@antonz.org | 3 years ago