I need a query or sql to pull records from a table where Max Date is less than a certain date. However, if the Max Date is greater than "the certain date" I don't want to exclude that record but instead pull the next Max Date for that record. Any suggestions?
Foxhound
Foxhound