General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Need help with UPDATE
Hi,
I have 2 tables (stocka & stockb). I need to update the qty field for all records in stocka with it's original vale plus the value stored in stockb.
Both table structures are identical with the pk field being barcode.
Something like this...
UPDATE stocka set stocka.qty = stocka.qty + (select qty from stockx where barcode = stocka.barcode).
Regards
Doug Johnston
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only