11 2021 档案

摘要:找出某个型号对应最高版本 SELECT distinct * into #temp1 FROM [fp_db].[dbo].[mktxhglb] where substring(pdctno,2,4) = 'ABWQ' select distinct * into #temp2 from #temp 阅读全文
posted @ 2021-11-25 19:58 顺时针KEY 阅读(144) 评论(0) 推荐(0)
摘要:解决方案:通过临时表先将数据查出再运用规则。 原规则: SELECT '@IsAfterPA_01',CASE WHEN COUNT(*)>0 THEN 'TRUE' ELSE 'FALSE' END FROM 表A p1,表A p2 WHERE p1.id = @flow_id AND p2.pd 阅读全文
posted @ 2021-11-03 08:55 顺时针KEY 阅读(87) 评论(0) 推荐(0)