I have two tables in sql server and I need to join them in my foxpro form button. When I click the button I need to join these two tables.
What should I do to join these two tables.
Thank you
Code:
stra="Select WG.cIntimNum, WG.cGarmentName, FI.cIntimNo, FI.cGMTName From MIS.dbo.vFinalInvGrossWgt WG where dXFactory >= ?thisform.txtFromDate.Value AND dXFactory <= ?thisform.txtToDate.Value and AND cSggNo IS NOT NULL and cGrnNumber IS NOT NULL JOIN MIS.dbo.vInvFinal FI ON WG.cIntimNum= FI.cIntimNo AND WG.cGarmentName= FI.cGMTName MIS.dbo.vInvFinal group by cIntimNo "
SQLEXEC(hndOps,stra,'SGG_GRN')
What should I do to join these two tables.
Thank you