
ORDER BY: Sorting Your Results
SQL returns rows in no guaranteed order; the same query can come back differently twice. ORDER BY gives you control, like Python's sorted() with keys.

SQL returns rows in no guaranteed order; the same query can come back differently twice. ORDER BY gives you control, like Python's sorted() with keys.

SQL's SELECT is more than picking columns. Rename with AS, compute expressions, and use DISTINCT for unique values.

We write SELECT first, but FROM runs first. It's the `for item in collection` part of a Python loop: pick your data source before anything else.

The mental model that makes SQL click: describe what you want instead of looping row by row. Think in sets and the keywords become intuitive.

Your in-memory database disappears when Python exits. Let's fix that with a one-line change that saves everything to disk.

Real SQL practice needs real-looking data. Generate hundreds of customers with Python's Faker library without downloading a single CSV

Learning SQL makes you a better Python developer, even if you use pandas and ORMs. The first post in a series that teaches it with DuckDB and Python.

I took the DEA-C01 AWS Data Engineer Associate exam for the second time this morning. No results yet, but here are my thoughts on the attempt.

DBeaver ships a sample database with employees, customers and orders. Here's what's inside and the first queries to run on it.

I downloaded the community edition of dBeaver today and enjoyed the installation experience and sample database option.