select count(1) FROM sdi_sap_saphanadb.BIC_AZEX_D092 a
LEFT JOIN sdi_sap_saphanadb.BIC_AZMD_D022 b
on a.MATNR=b.MATNR
and MTART in ('Z001','Z002')
LEFT JOIN sdi_sap_saphanadb.BIC_AZEX_D022 c
on b.MATNR = c.MATNR
and c.LFART='ZLF'
WHERE c.WBSTA='C'
Õâ¸öÊÇÄǸö±íµÄ×ֶΣ¿
Êý¾ÝÁ¿¹ý´ó»áÒ»Ö±¼ÓÔØ£¬½¨ÒéÓÅ»¯sql²éѯÓï¾ä£»select count(1) FROM a;select count(1) FROM b;select count(1) FROM c;Ïȵ¥¶À²éÒ»ÏÂÿ¸ö±íµÄÊý¾ÝÁ¿£¬ÔÙÈ¥¿´¹ØÁªÌõ¼þÊÇ·ñΨһ£»ÓÐʱ¼äÌõ¼þµÄ¿ÉÒÔÔö¼Ó£¬ÓÅÏȲéѯһ¸öÔÂÊý¾Ý£»
Êý¾ÝÁËÊÇ·ñºÜ´ó£¿
ÍøÂçÁ¬½ÓÊÇ·ñͨ³©£¿
Ö±½ÓÔÚÊý¾Ý¿âÀïÃæÖ´ÐÐÕâ¶ÎSQLÐèÒª¶à³¤Ê±¼ä£¿