K
Ken
I have a tblWarranties containing multiple entries for each customer. I
would like to return a record set of only the oldest ExpDate(s) for each
customer. It is possible that a customer would have multiple warranties with
the same ExpDate, so I would want all.
So it would need to ignore the customers warranty records with ExpDates
older then the most current ExpDate. For instance, in the example below only
the last two entries would be part of the record set.
WarrantyType
Term
BeginDate
ExpDate
Original Warranty
2
09-01-01
09-30-03
Parts Only
1
11-28-05
11-30-06
Phone Support
1
11-28-05
11-30-06
Parts Only
1
01-07-07
01-31-08
Phone Support
1
01-07-07
01-31-08
Once I get this intial record set then I know how to filter it further by
quering for records with a ExpDate within a user selectable date range.
Thanks,
Ken
would like to return a record set of only the oldest ExpDate(s) for each
customer. It is possible that a customer would have multiple warranties with
the same ExpDate, so I would want all.
So it would need to ignore the customers warranty records with ExpDates
older then the most current ExpDate. For instance, in the example below only
the last two entries would be part of the record set.
WarrantyType
Term
BeginDate
ExpDate
Original Warranty
2
09-01-01
09-30-03
Parts Only
1
11-28-05
11-30-06
Phone Support
1
11-28-05
11-30-06
Parts Only
1
01-07-07
01-31-08
Phone Support
1
01-07-07
01-31-08
Once I get this intial record set then I know how to filter it further by
quering for records with a ExpDate within a user selectable date range.
Thanks,
Ken