Instead of repeating data, tables point to each other with foreign keys. JOIN combines them again when you read.
CREATE TABLE orders ( id INTEGER PRIMARY KEY, product_id INTEGER REFERENCES products(id), quantity INTEGER NOT NULL ); SELECT orders.id, products.name, orders.quantity, products.price * orders.quantity AS total FROM orders JOIN products ON products.id = orders.product_id;