Human Resources · employees.demodb.dev
Employees (reduced subset)
sample database.
A reproducible, FK-closed reduced subset of the MySQL Employees sample, retaining 1,024 selected employees and their associated employment history.
-- Current department assignments
SELECT e.emp_no, e.first_name, e.last_name, d.dept_name,
6 tables · 2 views · 13,584 rows
-- 4 high-confidence cross-database table matches
Useful next steps
Tools for your next step.
DataTug
Explore Employees (reduced subset) visually.
Browse tables and query your data.
CodeGrapher
See how Employees (reduced subset) 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 × Employees (reduced subset)
The meaning behind the tables.
Explore the entities in this database and what they represent.
- Employee ↗
A person represented in the selected rows of the upstream Employees sample.
Mapped tables and fieldsemployeesemployees.emp_nodept_emp.emp_nodept_manager.emp_notitles.emp_nosalaries.emp_noExtends shared conceptemployeeMeaningGraph definition ↗ - Department ↗
One of the nine departments in the upstream Employees sample.
Mapped tables and fieldsdepartmentsdepartments.dept_nodepartments.dept_namedept_emp.dept_nodept_manager.dept_noEmployees (reduced subset) conceptMeaningGraph definition ↗ - Department assignment ↗
A dated department assignment for a selected employee.
Mapped tablesdept_empEmployees (reduced subset) conceptMeaningGraph definition ↗ - Department manager assignment ↗
A dated assignment of one of the source managers to a department.
Mapped tablesdept_managerEmployees (reduced subset) conceptMeaningGraph definition ↗ - Employee title history ↗
A title and effective date range recorded for a selected employee.
Mapped tablestitlesEmployees (reduced subset) conceptMeaningGraph definition ↗ - Employee salary history ↗
A salary value and effective date range recorded for a selected employee; the upstream source declares no currency.
Mapped tablessalariesEmployees (reduced subset) conceptMeaningGraph definition ↗
Explore SQLite in DataTug
Known limits.
- Editing needs exactly one primary-key column. 4 of 6 tables here have a composite key or none, so they open read-only: dept_emp, dept_manager, salaries, titles.
- Views are not listed: the local SQLite browser shows the 6 tables only, not the 2 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 Employees (reduced subset) data from https://github.com/datacharmer/test_db and is licensed CC-BY-SA-3.0. Files derived from it, in any format, must be shared under the same licence. The header of each generated script carries the licence and the attribution. Keep the licence and attribution notices with any copy. Source and licence →