Why can joining two tables create more rows than you started with?
If a value matches several records, a database join can produce several rows for that one value. A repeated name may therefore behave very differently from a unique customer identifier. Understanding what each joined row represents is essential before adding amounts or counting customers.
Questions you could explore
- What is the difference between no matching order and an order with a value of zero?
Start reading
- PostgreSQLPostgreSQL 18 Documentation: 7.2 Table Expressions
PostgreSQL 18 explains matching row combinations and the treatment of unmatched rows in outer joins.
Ready to try your ideas aloud?
Your topic carries over. Record up to 2½ minutes, depending on your plan.