Hello Everyone !
I have 2 tables, namely 'now' with 150 records and 'req' with 380 records.
now :
====
ncode - text
nqty - integer
nstat - text
req :
====
rcode - text
rqty - integer
xqty - integer ( newly added column with no values as of now)
rstat - text
Now, how do I update the 'req' tables xqty & rstat fields with 'now' table's nqty & nstat values; where only the ncode and rcode of both tables are same.
If possible, I need to put a 0 (zero) in the 'req' table's xqty field when the ncode and rcode do not match.
I hope I am clear.
Looks simple but I'm not sure if I can get it right without messing up the records.
Any help will be appreciated.
I have 2 tables, namely 'now' with 150 records and 'req' with 380 records.
now :
====
ncode - text
nqty - integer
nstat - text
req :
====
rcode - text
rqty - integer
xqty - integer ( newly added column with no values as of now)
rstat - text
Now, how do I update the 'req' tables xqty & rstat fields with 'now' table's nqty & nstat values; where only the ncode and rcode of both tables are same.
If possible, I need to put a 0 (zero) in the 'req' table's xqty field when the ncode and rcode do not match.
I hope I am clear.
Looks simple but I'm not sure if I can get it right without messing up the records.
Any help will be appreciated.