I am trying to return the min date value from one field and the max from another using the following SQL
SELECT tIHS.[VP: Production Brand], tIHS.[VP: Global Nameplate], tIHS.[T: Program], Min(tIHS.[VP: SOP (Start of Production)]) AS [MinOfVP: SOP (Start of Production)], Max(tIHS.[VP: EOP (End of Production)]) AS [MaxOfVP: EOP (End of Production)]
FROM tIHS
GROUP BY tIHS.[VP: Production Brand], tIHS.[VP: Global Nameplate], tIHS.[T: Program];
SOP and EOP are date fields. I am not sure what is being returned but it's not min and max. I think it is just returning data from the first row of data rather than looking at all rows for the min and max. There are 3 qualifying rows.
Does min and max not work with dates ? Thank you for your feedback!