how could i update a field with a value from a subquery...or is their another method of doing this
any help will be greatly appreciated
thanks in advance
update orders
set commissionable = 'this needs to be a value of a field from the subquery below'
where dbo.orders.id in (select id from orders where earned = '1' and commissionable is null)
any help will be greatly appreciated
thanks in advance
update orders
set commissionable = 'this needs to be a value of a field from the subquery below'
where dbo.orders.id in (select id from orders where earned = '1' and commissionable is null)