Jeff Warner
Technical User
I have a customer table and an order table. I want to create a report that selects all customers whose orders have all been placed two opr more years. If any one order has an order date < two years, I don't want to select that customer. So its' a one to many relationship. The tables look like this:
Customer file: order file:
cust number order number
customer name date ordered
last invoice date date billed
balance due amount billed
date last paid customer number
I think I must use an inner join using the customer number in both tables. Is there an SQL query or Select statement that meets this selection criteria? Or do I need a sub report that selects all the orders I don't know that syntax.
Customer file: order file:
cust number order number
customer name date ordered
last invoice date date billed
balance due amount billed
date last paid customer number
I think I must use an inner join using the customer number in both tables. Is there an SQL query or Select statement that meets this selection criteria? Or do I need a sub report that selects all the orders I don't know that syntax.