第一张表 select place,count(*)'>4μm_NG' from [Report_Test].[dbo].[ods_QualityModule_cleanliness_recycle] where place ='中转油箱出口' and substring (convert (varchar(4),test_time),0,5) ='2022' and dust1>10000 group by place 第二张表 select place,count(*)'>6μm_NG' from [Report_Test].[dbo].[ods_QualityModule_cleanliness_recycle] where place ='中转油箱出口' and substring (convert (varchar(4),test_time),0,5) ='2022' and dust2>640 group by place 第三张表 select place,count(*)'>14μm_NG' from [Report_Test].[dbo].[ods_QualityModule_cleanliness_recycle] where place ='中转油箱出口' and substring (convert (varchar(4),test_time),0,5) ='2022' and dust3>160 group by place |