Rutba Office

What a relational database is, explained with a small shop

A relational database keeps each kind of thing in its own table (customers, products, sales) and links the tables by an ID, so a customer’s address is typed once and every sale points at it. The database refuses a link to a record that does not exist, which a spreadsheet of lookups cannot do.

30 October 2026 · 4 min read

Tables, records and fields

A small shop has customers, products and sales. In a relational database each gets a table. Each row is a record (one customer), and each column is a field (the customer’s name, email, postcode). Every record has a primary key, usually a number, that never changes and is never reused, so it can be pointed at even if the name is corrected.

Why bother

  • Typed once. A customer moves house; you change one record, and every sale shows the new address.
  • Checked. The database refuses a sale line pointing at product 412 when there is no product 412. This is called referential integrity, and it is the thing a spreadsheet full of VLOOKUPs cannot promise.
  • Cleaned up. A relationship can say that deleting a sale deletes its lines too, or that a customer with sales cannot be deleted at all.
  • Questions across tables. A query can join sale lines to products and answer “what were our best sellers this month” in one step.

Where you will meet one

Microsoft Access and LibreOffice Base are desktop databases that keep a file on your own computer. SQLite is the engine inside countless phone apps and programs. MySQL, PostgreSQL and SQL Server run on servers for many people at once. They differ in size and setup, but tables, keys and relationships work the same way in all of them.

Our own product, disclosed

Where our own software comes into this

We make Rutba Office, a free desktop suite for Windows, and its Data Files app is a desktop database of this kind. The film below relates a shop’s tables: each sale points at one customer, each sale line at one sale and one product, and a sale’s lines go with it if it is ever deleted. Afterwards the lines show product names rather than numbers, and a line pointing at a product that does not exist is refused.

Plays from YouTube when you press play. Watch on YouTube
Relationships in Rutba Office Data Files: link sales to customers and lines to sales

Download it free →Compared with the alternatives →

Thirteen apps, one free download

No account, no telemetry, and it works with the network switched off.

One family

The rest of Rutba

One account across all of it. Sign in once and the products know each other.

OFFICE-ARTICLES-DETAIL · 2e7a24c