I am trying to compare max and min customer visit dates to determine whether a re-visit has occurred; so, if the max visit date is > than the min then a re-visit has occurred etc.
I could do this by writing a query to determine the max date for each customer, another to determine the min date, then bring the results together, before inserting them into the main table.
However, is there a more streamlined way to do this? I did try to use an IIF In statement but this didn't work.
I could do this by writing a query to determine the max date for each customer, another to determine the min date, then bring the results together, before inserting them into the main table.
However, is there a more streamlined way to do this? I did try to use an IIF In statement but this didn't work.