sql备份.sql 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. select acct_date, count(1)
  2. from tsl_data.high_quality_count_day
  3. group by acct_date
  4. order by acct_date;
  5. select month_id, day_id, count(1)
  6. from tsl_data.high_quality_list_day
  7. group by month_id, day_id
  8. order by month_id, day_id;
  9. select month_id, day_id, count(1)
  10. from tsl_data.mobile_complaint_day
  11. group by month_id, day_id
  12. order by month_id, day_id;
  13. select day_id, count(1)
  14. from tsl_data.high_quality_data
  15. group by day_id
  16. order by day_id;
  17. select month_id, city_name, management_target_ts_ratio, target_ts_ratio
  18. from report_auto.target_ts_ratio
  19. where month_id = '202312'
  20. order by city_name;
  21. update report_auto.target_ts_ratio
  22. set management_target_ts_ratio = 4.10, target_ts_ratio =4.1
  23. where month_id = '202312'
  24. and city_name in ('保定', '秦皇岛', '唐山');
  25. update report_auto.target_ts_ratio
  26. set management_target_ts_ratio = 3.90, target_ts_ratio =3.9
  27. where month_id = '202312'
  28. and city_name in ('沧州', '承德', '邯郸', '邢台');
  29. update report_auto.target_ts_ratio
  30. set management_target_ts_ratio = 3.40, target_ts_ratio =3.4
  31. where month_id = '202312'
  32. and city_name = '衡水';
  33. update report_auto.target_ts_ratio
  34. set management_target_ts_ratio = 4.20, target_ts_ratio =4.2
  35. where month_id = '202312'
  36. and city_name = '廊坊';
  37. update report_auto.target_ts_ratio
  38. set management_target_ts_ratio = 4.00, target_ts_ratio =4.0
  39. where month_id = '202312'
  40. and city_name in ('石家庄', '张家口', '全省');
  41. update report_auto.target_ts_ratio
  42. set management_target_ts_ratio = 4.90, target_ts_ratio =4.9
  43. where month_id = '202312'
  44. and city_name = '雄安';