This commit is contained in:
2023-07-09 15:38:49 +08:00
parent dc025066f7
commit a2ba8f91cc
34 changed files with 27379 additions and 4956 deletions

12
SQL_analysis_risk.sql Normal file
View File

@@ -0,0 +1,12 @@
select * from
(select s_id, id_firm, id_product, min(ts) as ts from iiabmdb.without_exp_result
where `status` = 'D'
group by s_id, id_firm, id_product) as s_disrupt
where s_id in
(select s_id from
(select s_id, id_firm, id_product, min(ts) as ts from iiabmdb.without_exp_result
where `status` = 'D'
group by s_id, id_firm, id_product) as t
group by s_id
having count(*) > 1)
order by s_id;