促销终稿界面汇总时剔除
执行机构包含PH01且商品u课等级大于U01的商品
SELECT * FROM #LS_P_ZPROMOTION_DOC_ITEMS a WHERE NOT EXISTS( SELECT * FROM #LS_P_ZPROMOTION_DOC_ITEMS b where a.Display1=b.Display1 and b.CLASS LIKE ''%PH01%'' and ( ISNUMERIC(CAST(SUBSTRING(asort,7,2) AS INT))=1 AND CAST(SUBSTRING(asort,7,2) AS INT)>1 ) )