Update GetRawStatsForAgent.sql

Using latest timestamp as per day as key instead of highest value per day