Sales, purchasing, manufacturing, and inventory · adventureworks.demodb.dev
AdventureWorks OLTP
sample database.
Microsoft AdventureWorks OLTP sample database with people, products, sales, purchasing, manufacturing, and inventory.
-- Orders by customer
SELECT h."SalesOrderNumber", c."CustomerID", h."OrderDate", h."TotalDue"
71 tables · 11 views · 759,240 rows
-- 3 high-confidence cross-database table matches
Useful next steps
Tools for your next step.
DataTug
Explore AdventureWorks OLTP visually.
Browse tables and query your data.
CodeGrapher
See how AdventureWorks OLTP 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 × AdventureWorks OLTP
The meaning behind the tables.
Explore the entities in this database and what they represent.
- Person ↗
People represented by AdventureWorks person records.
Mapped tablesPerson.PersonExtends shared conceptpersonMeaningGraph definition ↗ - Employee ↗
People employed in the AdventureWorks organization.
Mapped tablesHumanResources.EmployeeExtends shared conceptemployeeMeaningGraph definition ↗ - Sales customer ↗
Customers recorded for AdventureWorks sales.
Mapped tablesSales.CustomerExtends shared conceptcustomerMeaningGraph definition ↗ - Supplier ↗
Vendors that supply products to AdventureWorks.
Mapped tablesPurchasing.VendorExtends shared conceptorganizationMeaningGraph definition ↗ - Sales order ↗
A request to supply goods to a customer, as recorded in a sales order header.
Mapped tablesSales.SalesOrderHeaderExtends shared conceptorderMeaningGraph definition ↗ - Sales order line ↗
One product entry on an AdventureWorks sales order.
Mapped tablesSales.SalesOrderDetailExtends shared conceptorder lineMeaningGraph definition ↗ - Purchase order ↗
A request to purchase goods from a vendor.
Mapped tablesPurchasing.PurchaseOrderHeaderExtends shared conceptorderMeaningGraph definition ↗ - Purchase order line ↗
One product entry on a purchase order.
Mapped tablesPurchasing.PurchaseOrderDetailExtends shared conceptcommercial line itemMeaningGraph definition ↗ - Product ↗
Products and components represented in the AdventureWorks catalog.
Mapped tablesProduction.ProductAdventureWorks OLTP conceptMeaningGraph definition ↗ - Product category ↗
Product categories used in the manufacturing catalog.
Mapped tablesProduction.ProductCategoryAdventureWorks OLTP conceptMeaningGraph definition ↗ - Country or region ↗
Country and region names with the source two-letter CountryRegionCode values; codes are not reconciled to a current ISO release.
Extends shared conceptcountryMeaningGraph definition ↗
Explore SQLite in DataTug
Known limits.
- Editing needs exactly one primary-key column. 23 of 71 tables here have a composite key or none, so they open read-only: HumanResources.EmployeeDepartmentHistory, HumanResources.EmployeePayHistory, Person.BusinessEntityAddress, Person.BusinessEntityContact, Person.EmailAddress, Person.PersonPhone, Production.ProductCostHistory, Production.ProductDocument, Production.ProductInventory, Production.ProductListPriceHistory, Production.ProductModelIllustration, Production.ProductModelProductDescriptionCulture, Production.ProductProductPhoto, Production.WorkOrderRouting, Purchasing.ProductVendor, Purchasing.PurchaseOrderDetail, Sales.CountryRegionCurrency, Sales.PersonCreditCard, Sales.SalesOrderDetail, Sales.SalesOrderHeaderSalesReason, Sales.SalesPersonQuotaHistory, Sales.SalesTerritoryHistory, Sales.SpecialOfferProduct.
- Views are not listed: the local SQLite browser shows the 71 tables only, not the 11 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 AdventureWorks OLTP 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 →