Update groupby interval for differnce queries