Hi,
I am still using v1.2005
I have a large table in my database that lists individual orders placed by customers, with each order having an order date field.
I link this table to my customer table to get the customer details
What I need to do is retrieve a collection of customers that have one or more orders between a specified date range.
The problem is that I cannot see how I can get DISTINCT customers because what is being return by the generated SQL is a HUGE list showing a customer entity for each order.
How can I include a DISTINCT clause within my entity collection fetch SQL statement. I have seen that this can be done relatively easily with dynamic lists but I really do not want to move over to dynamic lists if at all possible as this would require a lot of re-coding of my application.
Could I for example do something with the join type?