Min and Max Dates in APEX