I need to be able to update multiple columns on a table using the result of a subquery. A simple example will look like below -
UPDATE table1 SET (col1, col2) =
This isn't the most efficient way to do this, but it's simple:
UPDATE table1 SET col1 = (SELECT MIN (ship_charge) FROM orders), col2 = (SELECT MAX (ship_charge) FROM orders) WHERE col4 = 1001;