I have a cursor as below.
Now I want to get records from sql using _DelDtl. For that I used my code as below. But I can't get records.
In MIS.dbo.vInvFinal there have records as below.
To get records from MIS.dbo.vInvFinal I used this, but it is not working,
After that I want to get the records which are not in MIS.dbo.vInvFinal as below.
Can someone please help me to do this?
Thank you
Code:
_DelDtl
nStylecode cLotName cLotColor
1234 A1 BLACK
12 B2 WHITE
12 B2 YELLOW
654 C5 BLACK
654 C5 WHITE
654 C5 PINK
Now I want to get records from sql using _DelDtl. For that I used my code as below. But I can't get records.
In MIS.dbo.vInvFinal there have records as below.
Code:
nStyleCD cLotName cLotColor
1234 A1 BLACK
12 B2 WHITE
654 C5 BLACK
Code:
stra="select nStyleCD,cLotName,cLotColor from MIS.dbo.vInvFinal where nStyleCD=?_DelDtl.nStylecode and cLotName=?_DelDtl.cLotName group by nStyleCD,cLotName,cLotColor "
SQLEXEC(hndOps,stra,'_Colors')
After that I want to get the records which are not in MIS.dbo.vInvFinal as below.
Code:
nStyleCD cLotName cLotColor
12 B2 YELLOW
654 C5 WHITE
654 C5 PINK
Can someone please help me to do this?
Thank you