Table 1: invTypes with columns typeID,groupID,typeName,description
Table 2: item_value with columns typeID,volume,avg,max,min,stddev,percentile,updated_on
I need to return all of the above columns where the latest updated_on (datetime) field as the deciding factor. I would like to return the latest datetime for each day with all of the information from table 1 and table 2 as the result.
This is how you get the rows corresponding to the most recent
updated_onfor each date in youritem_valuetable: