Video rental · sakila.demodb.dev
Sakila
sample database.
MySQL's sample video rental database, with films, actors, customers, rentals, payments, and stores.
-- Films by category
SELECT film_list.title, film_list.category, film_list.price FROM
16 tables · 7 views · 47,268 rows
-- 7 high-confidence cross-database table matches
Useful next steps
Tools for your next step.
CodeGrapher
See how Sakila connects.
Explore tables, relationships and linked meanings.
QueryDock
A home for SQL experiments.
Run PostgreSQL, SQLite and DuckDB in your browser.
Schema at a glance
Browse the recordsets.
MeaningGraph × Sakila
The meaning behind the tables.
Explore the entities in this database and what they represent.
- Actor ↗
A performer associated with one or more films.
Mapped tablesactorExtends shared conceptpersonMeaningGraph definition ↗ - Customer ↗
A person registered to rent from a store.
Mapped tablescustomerExtends shared conceptcustomerMeaningGraph definition ↗ - Staff member ↗
An employee who manages stores or processes rentals and payments.
Mapped tablesstaffExtends shared conceptemployeeMeaningGraph definition ↗ - Film ↗
A title in the rental catalogue.
Mapped tablesfilmSakila conceptMeaningGraph definition ↗ - Store ↗
A location that holds and rents film inventory.
Mapped tablesstoreSakila conceptMeaningGraph definition ↗ - Rental ↗
A customer's rental of one item of film inventory.
Mapped tablesrentalSakila conceptMeaningGraph definition ↗ - Payment ↗
A payment recorded for a rental transaction.
Mapped tablespaymentSakila conceptMeaningGraph definition ↗
Explore SQLite in DataTug
Known limits.
- Editing needs exactly one primary-key column. 2 of 16 tables here have a composite key or none, so they open read-only: film_actor, film_category.
- Views are not listed: the local SQLite browser shows the 16 tables only, not the 7 views. The schema pages on this site list them.
- A table opens with its first 100 rows. There is no paging yet.
Explore PostgreSQL in DataTug
Read-only.
- Explore PostgreSQL in DataTug is read-only by design: you can browse tables and records, but nothing can be edited, deleted or reset.
- It reads the hosted PostgreSQL copy through the public OpenVaultDB server with read-only TugQL queries, never the database directly.
- A table opens with its first 100 rows. There is no paging yet.
- To change data, use the editable local SQLite copy that Explore SQLite in DataTug opens in your browser.
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 Sakila data from https://downloads.mysql.com/docs/sakila-db.zip and is licensed BSD-3-Clause. The header of each generated script carries the licence and the attribution. Keep the licence and attribution notices with any copy. Source and licence →