You can specify a scalar subquery in the same way that you specify a column or constant in the SET clause of an UPDATE request.
The following example specifies a scalar subquery in its SET clause:
UPDATE sales_sum_table AS sst SET total_sales = (SELECT SUM(amount) FROM sales_table AS s WHERE s.day_of_sale BETWEEN sst.period_start AND sst.period_end);