@@ -19,13 +19,19 @@ Richr00t#
## 统计各小时数据
```sql
-select
- rpt_time,
- count(*)
-from
- tsfx.dw_sa_omc_ci_h
-group by
- rpt_time
-order by
- rpt_time desc
-```
+select rpt_time,
+ count(1)
+from tsfx.dw_sa_omc_ci_h
+group by rpt_time
+order by rpt_time desc;
+```
+
+## 检查重复数据
+```sql
+select nci,
+where rpt_time = '2022-12-25 19:00:00'
+group by nci
+having count(1) > 1;