PostgreSQL - Joins in PostgreSQL
You have tables:
You want to join on
orders(order_id, customer_id, date)customers(customer_id, name, date)You want to join on
customer_id only, but date is also common. How can you avoid date being used in a NATURAL JOIN?