selectDATE_FORMAT(f.upload_time,'%Y%u') weeks,count(*),sum(p.download_times),sum(p.collection_times),sum(p.click_times) fromfile_base f left joinfile_property p onf.property_id = p.id groupbyweeks;
fromfile_base f left joinfile_property p onf.property_id = p.id groupbydays;
selectDATE_FORMAT(f.upload_time,'%Y%m') months,count(*),sum(p.download_times),sum(p.collection_times),sum(p.click_times) fromfile_base f left joinfile_property p onf.property_id = p.id groupbymonths;