Forum Moderators: open
This is what I came up with so far:
SELECT * FROM customers c JOIN orders o ON (c.addr_id = o.rec_id) WHERE o.order_date >='" . $date ."'"
The query is working so far, however if a customer has ordered twice in the last three month, the query returns the customer address twice also. But I need the address only once.