CR10.0
SqlServer
Can anyone tell me how I would do this link within Crystal?
SELECT SHITEM.Fpartno,SHITEM.Frev,SHMAST.Fcbcompany,SHMAST.Fcsono,;
SHITEM.Fenumber,SOITEM.Fquantity,SHITEM.Fshipqty,SOITEM.Fduedate,;
SHMAST.Fshipdate,SHITEM.Fshipno;
FROM M2MDATA!SOITEM SOITEM INNER JOIN (M2MDATA!SHITEM SHITEM INNER JOIN M2MDATA!SHMAST SHMAST ON SHITEM.FSHIPNO = SHMAST.FSHIPNO);
ON SOITEM.FSONO = LEFT(SHITEM.FSOKEY,6) AND SOITEM.FINUMBER = PADL(SUBSTR(SHITEM.FSOKEY,7,3),3,'0');
ORDER BY SHITEM.Fpartno, SHMAST.Fcsono, SHITEM.Fenumber, SOITEM.Fduedate, SHMAST.Fshipdate;
INTO CURSOR ZPSHOT
I hope this helps. The problem is the link from SOITEM table to the SHITEM table. Any help would be great!
Jeff
SqlServer
Can anyone tell me how I would do this link within Crystal?
SELECT SHITEM.Fpartno,SHITEM.Frev,SHMAST.Fcbcompany,SHMAST.Fcsono,;
SHITEM.Fenumber,SOITEM.Fquantity,SHITEM.Fshipqty,SOITEM.Fduedate,;
SHMAST.Fshipdate,SHITEM.Fshipno;
FROM M2MDATA!SOITEM SOITEM INNER JOIN (M2MDATA!SHITEM SHITEM INNER JOIN M2MDATA!SHMAST SHMAST ON SHITEM.FSHIPNO = SHMAST.FSHIPNO);
ON SOITEM.FSONO = LEFT(SHITEM.FSOKEY,6) AND SOITEM.FINUMBER = PADL(SUBSTR(SHITEM.FSOKEY,7,3),3,'0');
ORDER BY SHITEM.Fpartno, SHMAST.Fcsono, SHITEM.Fenumber, SOITEM.Fduedate, SHMAST.Fshipdate;
INTO CURSOR ZPSHOT
I hope this helps. The problem is the link from SOITEM table to the SHITEM table. Any help would be great!
Jeff