SELECT TOP * FROM PurchTable WITH (INDEX=PurchIdx) LEFT JOIN IdcfCodeLine AS IdcfCodeLine_1 ON (IdcfTypeCd = N'355') LEFT JOIN IdcfCodeLine AS IdcfCodeLine_1_1 ON IdcfCodeLine_1.IdcfCodeFreeStrSpace = IdcfCodeLine_1_1.IdcfCodeFreeStrSpace AND (IdcfTypeCd = N'355') WHERE (IdcfCodeLine_1_1.IdcfCodeFreeStrSpace2 LIKE '31%' OR PurchTable.IdcfApplicantDept LIKE '31%') AND PurchTable.IdcfApplicantDept LIKE IdcfCodeLine_1_1.IdcfCodeFreeStrSpace2 + '%' AND (PurchTable.IdcfDrafterId = 'hongmin.liang' OR PurchTable.IdcfApplicantId = 'hongmin.liang') AND PurchTable.IdcfPurchCategory_1 != '43支払依頼:秘匿'

X++ SQL to SQL Server Conversion: PurchTable and IdcfCodeLine Query

原文地址: https://www.cveoy.top/t/topic/pcgY 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录