Hi,
If anyone could help me with the correct SQL syntax for Updating a table.
Here’s the code.
Thanks
If anyone could help me with the correct SQL syntax for Updating a table.
Here’s the code.
Code:
UPDATE Table1 INNER JOIN Table2 ON Table1.ItemNo = Table2.ItemNo
SET Table1.QtyBal = (subquery1 – subquery2)
The two subqueries are
Select Sum([Qty]) From Table2 Where IssueDate Between #01-Jan-01# and #30-Jan-01#
Select Sum([Qty]) From Table2 Where IssueDate Between #15-Jan-01# and #30-Jan-01#
Thanks