Dear all,
Can I do it with SQL ?
table1.dbf = (code, desc, qty)
table2.dbf = (code, desc, qty, msg)
sele 1
use table1.dbf
sele 2
use table2.dbf
sele 1
do while !eof()
tcode=code
tdescr=descr
tqty=qty
tmsg="OK"
if tqty<10
tqty=0
tmsg="WARNING"
endi
sele 2
appe blan
repl code with tcode,;
descr with tdescr,;
qty with tqty,;
msg with tmsg
sele 1
skip
endd
I would like to make it with SQL, hopely it could be faster.
ps. I use VFP 5.0
Thank you in advance
Can I do it with SQL ?
table1.dbf = (code, desc, qty)
table2.dbf = (code, desc, qty, msg)
sele 1
use table1.dbf
sele 2
use table2.dbf
sele 1
do while !eof()
tcode=code
tdescr=descr
tqty=qty
tmsg="OK"
if tqty<10
tqty=0
tmsg="WARNING"
endi
sele 2
appe blan
repl code with tcode,;
descr with tdescr,;
qty with tqty,;
msg with tmsg
sele 1
skip
endd
I would like to make it with SQL, hopely it could be faster.
ps. I use VFP 5.0
Thank you in advance