All sample databases

Publishing · pubs.demodb.dev

Pubs
sample database.

Microsoft's classic publishing sample database, with authors, books, publishers, stores, sales, and publisher-logo images.

pubs.sqlite

-- Titles by publisher

SELECT titles.title, publishers.pub_name, titles.price FROM

11 tables · 1 views · 255 rows

-- 5 high-confidence cross-database table matches

11tables
1views
255table rows

Useful next steps

Tools for your next step.

DataTug

Explore Pubs visually.
Browse tables and query your data.

Open Pubs in DataTug →

CodeGrapher

See how Pubs connects.
Explore tables, relationships and linked meanings.

Open schema graph ↗

QueryDock

A home for SQL experiments.
Run PostgreSQL, SQLite and DuckDB in your browser.

Open QueryDock ↗

Schema at a glance

Browse the recordsets.

All tables and views →

MeaningGraph × Pubs

The meaning behind the tables.

Explore the entities in this database and what they represent.

Explore MeaningGraph ↗

Explore SQLite in DataTug

Known limits.

Explore PostgreSQL in DataTug

Read-only.

Downloads

Use this fixture
where you work.

Provider files are checked against the provider’s pinned checksums; the complete JSON, YAML, PostgreSQL script, MySQL, SQL Server and Oracle scripts and inGitDB archive may be generated from those checked files or by DataTug, and are pinned by a lock; the matrix says which, per dataset. Pick a complete database or a single table.

Every file here, including the PostgreSQL script, JSON, YAML, inGitDB archive, MySQL script, SQL Server script and Oracle script that DemoDB generates from the pinned fixture, contains Pubs data from https://github.com/microsoft/sql-server-samples and is licensed MIT. The header of each generated script carries the licence and the attribution. Keep the licence and attribution notices with any copy. Source and licence →