Sql Having Max Date. The MAX() function returns the largest value of the selected colu