Topic 49

The Engines You'll Hear About

Engines

Job postings, team chats, and conference talks don't say "a relational database" — they say Postgres, MySQL, SQL Server. This page hands you honest one-paragraph portraits of the five engine names you will actually hear, so the names carry real content instead of vague prestige. Portraits, not rankings: every engine on this page runs serious production somewhere, and "which is best?" is the wrong question in exactly the way Topic 48 taught you to recognize.

Here is the reassuring part first, with the one analogy this page gets: engines are car brands. Your driving license transfers between them; what changes is where the dashboard buttons sit. Everything this book taught — tables, keys, SELECT, JOINs, constraints, transactions, indexes — works in all five, in the same SQL, with small differences of accent. Learn the model once, and each engine is a rental car, not a new driving school.

The Open-Source Pair

PostgreSQL is the full-featured default of new projects — the engine most teams reach for today when the framework says "relational" and nothing forces another answer. It is free and open source, strict about correctness, and deep enough that this course's sibling, the PostgreSQL Deep Dive, exists to explore its internals. If this book had an implicit home engine, it is this one: every query you read here runs on Postgres unchanged.

MySQL is the web's long-time workhorse. It powered the early internet's blogs, shops, and social networks, and it still runs an enormous share of the sites you visit — free, everywhere, and supported by two decades of tutorials and hosting defaults. Its SQL accent differs slightly from Postgres's, and historically it was more relaxed about strictness, but the model is the same model. One line for completeness: MariaDB is a fork of MySQL — a copy of the project continued by its original author under a new name — and speaks essentially the same dialect.

The Embedded One

SQLite you met in Chapter 9: not a server at all, but a library inside the application, storing the whole database in a single ordinary file. No installation, no accounts, no configuration — a program opens the file and starts issuing SQL. That trick makes it the most deployed database on earth: it sits inside every phone, every browser, and countless apps that never mention it.

Its niche follows from its shape. One application, one file, no crowd of simultaneous writers — perfect for phones, desktop apps, small websites, and practice. When Topic 51 suggests experimenting on a personal project, SQLite is the engine most likely under your fingers, precisely because there is nothing to set up.

The Commercial Pair

SQL Server is Microsoft's engine and the natural citizen of Microsoft-centered companies — the ones running Windows servers, .NET applications, and Office across the business. It is a paid product with a genuinely capable free edition, and its SQL dialect has a name of its own, T-SQL, whose accent you can see in the strip below. If your first employer is a Microsoft shop, this is the engine your license transfers to.

Oracle is the enterprise incumbent: the engine of banks, airlines, governments, and other institutions that bought their databases decades ago and run them at serious scale with serious support contracts. It is famously expensive and famously deep. You will meet it in large, older organizations far more often than in startups — named here without sneer or awe, because both are folklore and neither helps you.

Five portraits, one line each
PostgreSQL
the full-featured default of new projects
MySQL
the web's long-time workhorse
SQLite
in-process, zero-config, most deployed on earth
SQL Server
the Microsoft world's citizen
Oracle
the enterprise incumbent

How Much Does This Choice Matter?

For everything this book taught: barely. Here is the same question — the five longest films — in the form this book has used all along, which runs unchanged on PostgreSQL and SQLite (and, with trivial changes, on MySQL):

The book's dialect — runs on PostgreSQL and SQLite as written
SELECT title, runtime_min
FROM films
ORDER BY runtime_min DESC
LIMIT 5;

And here is the identical question in SQL Server's T-SQL accent. The keyword moves to the front and changes its name; nothing else is different:

The same question in T-SQL — the accent, visible
SELECT TOP 5 title, runtime_min
FROM films
ORDER BY runtime_min DESC;

That is the culture shock, in its entirety. Standard SQL also defines a portable spelling, FETCH FIRST 5 ROWS ONLY, which newer versions of all these engines accept. The accents cluster in the same few places — row limits, auto-numbering (SERIAL here, AUTOINCREMENT there), date functions — and a working engineer learns each engine's spelling in an afternoon with the documentation open.

Where the choice does matter is everything around the SQL: licensing costs, operational tooling, hosting options, what your team already knows. Those are real inputs to Topic 48's framework — for the person choosing an engine for a company. They are not a beginner's burden. Your job at this stage reduces to one sentence: learn the model, rent the engine. The model is yours for a career; the engine is whichever one your first team already drives.

Common Confusions
  • "I learned generic SQL, so real engines will feel alien." You have been reading SQL that runs on PostgreSQL and SQLite all book. The accent strip above is the whole culture shock — a keyword that moves and renames, not a new language.
  • "Open source means hobbyist." PostgreSQL and MySQL run banks, airlines, and most of the web. License and league are unrelated — the same lesson SQLite taught when "free file on a phone" turned out to mean "most deployed database on earth".
  • "I must pick my engine now." The skills this book built are engine-portable by design. Your first team's existing choice will pick for you, and your license transfers — that is precisely why the portraits matter more than a ranking would.
Why It Matters
  • Name-recognition with honest priors is exactly what interviews and team chats assume — "we're a SQL Server shop" should now tell you three useful things instead of nothing.
  • "Learn the model, rent the engine" is the course's portability thesis stated as career advice: nothing you learned here expires when you change employers or engines.

Knowledge Check

Which engine runs as a library inside the application, storing the whole database in a single file with nothing to install?

  • PostgreSQL
  • SQLite
  • Oracle
  • MariaDB

At this book's level, what actually differs between the five engines?

  • The underlying model — each engine has its own idea of tables and keys
  • Small spelling accents — row limits, auto-numbering, date functions
  • Whether they speak SQL at all
  • Which of them support JOINs and transactions

Match the sighting to the likely engine: a company running Windows servers, .NET applications, and Office everywhere.

  • SQLite
  • PostgreSQL
  • SQL Server
  • MySQL

What does "learn the model, rent the engine" mean in practice?

  • Memorize each engine's specific dialect first, since the dialects are the truly durable skill
  • Always choose a commercial engine, because renting beats owning
  • Master tables, SQL, and the relational ideas, then adopt whatever engine your team uses
  • Rank the engines and hold out for a job that uses the best one

You got correct