I have 2 tables
Create Table Orders (
OrderNo Long,
Amount Double )
Create Table OrderDetails (
OrderNo Long,
Item varchar(20),
ItemAmount Double )
the sum of ItemAmount for all items in an order in OrderDetails should be
equal to the Amount in Orders table.
What is the update query to set that for all rows in Orders?