Access database examples: six sample databases
Six ready-made Access databases to download, explore and build on: how the tables are split, how the relationships run and which queries are typical. They hold the same data as our course and were created in Access 2024.
In short: a good Access database has a separate table for each kind of thing (customers, products, orders), a primary key in every table and relationships with referential integrity. Nothing is stored twice: an order only knows the CustomerID, not the name and city.
These files are practice databases, not finished applications: they contain tables, data, field properties such as validation rules, and the relationships. You build the queries, forms and reports yourself in the Access course. You can try every query on this page without Access in Access SQL online, where all six databases are available. The data is made up; names and places are invented.
1. Shop: customers, products and orders
Use: the classic starting point, a small mail-order business. The course uses it from the first query to the invoice.
Tables: Customers (25, in the UK and the USA), Categories (4), Products (18), Orders (120), OrderDetails (321). An order has several detail lines, and each line points to a product.
Relationships: Customers to Orders, Orders to OrderDetails (cascade delete: deleting an order deletes its lines), Products to OrderDetails, Categories to Products, all with referential integrity.
SELECT Customers.LastName, Count(Orders.OrderID) AS OrderCount
FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID
GROUP BY Customers.CustomerID, Customers.LastName
ORDER BY Count(Orders.OrderID) DESC, Customers.LastName
Practice database as an Access file
The database is free as an Access file (.accdb). All you need is a free account, no subscription and no payment details.
Create a free account and download Already have an account? Log in
2. Members: fees and courses
Use: member database of a sports club with annual fees and course enrollments. It is the database of the final project in the course.
Tables: MembershipTypes (4), Members (40, with joined and left dates), Fees (74, with a paid-on date), Courses (6, with a maximum number of places), Enrollments (31).
Relationships: MembershipTypes to Members, Members to Fees, Members to Enrollments (with cascade delete), Courses to Enrollments.
SELECT Members.LastName, Fees.FeeYear, Fees.Amount
FROM Members INNER JOIN Fees ON Members.MemberID = Fees.MemberID
WHERE Fees.PaidOn Is Null
Practice database as an Access file
The database is free as an Access file (.accdb). All you need is a free account, no subscription and no payment details.
Create a free account and download Already have an account? Log in
3. CRM and invoices
Use: a small customer database for a service business: activities with follow-up dates, invoices with lines, a tax rate per line and a reminder level.
Tables: Customers (24 in the UK and the USA), Services (7), Activities (70), Invoices (90), InvoiceLines (196). UK lines carry VAT at 20 % (the handbook at 0 %), US lines no tax.
Relationships: Customers to Activities and to Invoices, Invoices to InvoiceLines (with cascade delete), Services to InvoiceLines. In depth in the CRM database course.
SELECT Invoices.InvoiceNo, Round(Sum(Quantity * UnitPrice * (1 + TaxRate)), 2) AS Gross
FROM Invoices INNER JOIN InvoiceLines ON Invoices.InvoiceID = InvoiceLines.InvoiceID
GROUP BY Invoices.InvoiceNo
Practice database as an Access file
The database is free as an Access file (.accdb). All you need is a free account, no subscription and no payment details.
Create a free account and download Already have an account? Log in
4. Inventory
Use: stock control with receipts and issues recorded as movements instead of a fixed stock field. Stock on hand is the sum of the movements, and the stock count shows differences.
Tables: Suppliers (5), Items (30, with reorder level and bin location), StockMoves (834, receipts positive, issues negative), StockCounts (29 counts).
Relationships: Suppliers to Items, Items to StockMoves, Items to StockCounts. In depth in the inventory database course.
SELECT Items.ItemNo, Items.Description, Sum(StockMoves.Quantity) AS OnHand
FROM Items INNER JOIN StockMoves ON Items.ItemID = StockMoves.ItemID
GROUP BY Items.ItemNo, Items.Description, Items.ReorderLevel
HAVING Sum(StockMoves.Quantity) < Items.ReorderLevel
Practice database as an Access file
The database is free as an Access file (.accdb). All you need is a free account, no subscription and no payment details.
Create a free account and download Already have an account? Log in
5. Membership database with sections
Use: a larger club in which one member can belong to several sections. It shows a many-to-many relationship through a junction table with a composite key.
Tables: FeeGroups (4, with text as the key), Sections (5), Members (60), SectionMembers (68, key made of MemberID and SectionID), Dues (110, with reminder level), VolunteerHours (107).
Relationships: FeeGroups to Members, Members and Sections to SectionMembers, Members to Dues and VolunteerHours. In depth in the membership database course.
SELECT Sections.Section, Count(*) AS MemberCount
FROM Sections INNER JOIN SectionMembers ON Sections.SectionID = SectionMembers.SectionID
GROUP BY Sections.Section
Practice database as an Access file
The database is free as an Access file (.accdb). All you need is a free account, no subscription and no payment details.
Create a free account and download Already have an account? Log in
6. Employees and training
Use: HR database with mandatory training that expires after a number of months, and absences. Each employee can have a manager from the same table.
Tables: Departments (5), Employees (40, with ManagerID, weekly hours and leave days), Trainings (6, mandatory flag and validity), TrainingRecords (271), Absences (144).
Relationships: Departments to Employees, Employees to TrainingRecords and Absences (with cascade delete), Trainings to TrainingRecords. In depth in the employee database course.
SELECT e.LastName, m.LastName AS Manager
FROM Employees AS e LEFT JOIN Employees AS m ON e.ManagerID = m.EmployeeID
Practice database as an Access file
The database is free as an Access file (.accdb). All you need is a free account, no subscription and no payment details.
Create a free account and download Already have an account? Log in
What all six have in common
- One table per kind of thing. Customers, products and orders are kept apart and linked by keys. The lesson on normalization explains why.
- A primary key everywhere, usually an AutoNumber. Where a text is naturally unique, like the fee group, it can be the key too.
- Referential integrity: Access won't accept an order for a customer that doesn't exist, or delete a customer who still has orders. Cascade delete only where a child record makes no sense without its parent. More in the lesson on relationships.
- Gaps on purpose: customers without a city, open orders without a ship date, a customer without orders, a product never sold. They are there so you can practise Is Null, Nz and unmatched queries.
- Calculations belong in queries, not in table fields: invoice totals, stock on hand and ages are worked out when the query runs. The functions list lists the functions you need.
Templates from Microsoft
Access itself offers more templates under File, New, including the Northwind 2.0 sample database in a starter and a developer edition. They show finished forms and reports. For learning, our databases are smaller and match the exercises in which the server checks your result.