Start with SQL: normalized tables & rock-solid ACID
For an e-commerce checkout system, **PostgreSQL** enforces strict schemas, foreign keys (`orders.user_id → users.id`), and multi-row **ACID transactions**.
When a shopper checks out, decrementing inventory and inserting an order succeed or roll back together atomically—zero orphaned orders and zero oversold items.
idea:Default to relational SQL whenever your data has clear relationships, evolving query needs, or strict financial consistency.