Prompt
How do I organize relational data without SQL in a spreadsheet-like tool?
Latest observation
You can organize relational data in a spreadsheet-like tool by treating each sheet/table as a normalized table and using IDs + lookup fields instead of manually duplicating data.
Core idea
Think in terms of:
- One table per entity
- One row per record
- A unique ID for every row
- References to other tables via IDs
- Use formulas/lookups to display related data
Example structure
1) Customers table
| customer_id | name | |
|---|---|---|
| C001 | Alice | a@x.com |
| C002 | Bob | b@x.com |
2) Orders table
| order_id | customer_id | date | total |
|---|---|---|---|
| O100 | C001 | 2026-01-01 | 50 |
| O101 | C002 | 2026-01-02 | 75 |
Here, customer_id in Orders is a foreign key-like reference.
How to make it work in a spreadsheet tool
Use unique IDs
Avoid relying on names as identifiers. Names can change or duplicate. Use stable IDs like C001, O100, etc.
Use dropdowns / linked record fields
If the tool supports it, make relational columns:
- Orders → Customer
- Order Items → Order
- Order Items → Product
This prevents typing wrong IDs and makes navigation easier.
Use lookup formulas
To display related info without duplicating it:
- In Orders, pull customer name from Customers using a lookup
- In Order Items, pull product price from Products
This keeps data consistent while still showing human-friendly values.
Normalize your data
Don’t repeat the same data in many places.
Bad:
- Putting customer name/email in every order row
Better:
- Store customer data once in Customers
- Reference it from Orders
Create junction tables for many-to-many relationships
If one order can contain many products and one product can appear in many orders, use a middle table:
Order Items
| order_item_id | order_id | product_id | quantity |
|---|---|---|---|
| I1 | O100 | P01 | 2 |
| I2 | O100 | P03 | 1 |
This is how you model many-to-many relationships without SQL.
Helpful patterns
Parent-child
- Projects → Tasks
- Tasks → Subtasks
Lookup/reference
- Invoices → Clients
- Tickets → Agents
Junction table
- Students ↔ Courses
- Posts ↔ Tags
Practical tips
- Keep each table narrow and focused
- Use consistent naming conventions
- Validate inputs with dropdowns
- Avoid merged cells and freeform layouts
- Store dates as actual dates, numbers as numbers
- Keep “display” fields separate from “source of truth” fields
If your tool has relational features
Tools like Airtable, Notion databases, Coda, Smartsheet, or spreadsheet add-ons often support:
- linked records
- rollups
- lookups
- reference fields
These give you SQL-like relationships without writing SQL.
Simple rule of thumb
If you’re wondering where to put a piece of data:
- If it describes the entity itself, store it in that entity’s table
- If it describes a relationship, store it in a linking table
- If it repeats across many rows, store it once and reference it
If you want, I can show you a concrete example for a specific use case like CRM, inventory, projects, or event management.