Is there any really clever way to update values from a select statement?What I mean by this is that if a select statement (which has 3 or 4 joins) returns 30 rows where x = 1, but I want x to = 2.I can re-write it as an Update statement (but it gets more complicated with more joins) so I just wanted to know if there are any other ways to update the values?As an example, this script:select --top 10 _pledge_schedule.id , _pledge_schedule.reference , _pledge_schedule.date_created , _pledge_schedule.pledge_payment_id , _pledge_schedule.submission_date , _pledge_schedule.requested_date , _pledge_schedule.received_date , _pledge_schedule.supporter_id , _pledge_schedule.status , _pledge_payment_Details.request_month_date , (SELECT reference FROM _contact WHERE _pledge_schedule.supporter_id = _contact.id) as Contact_Ref , (SELECT id FROM _pledge WHERE _pledge_schedule.pledge_id = _pledge.id) as Pledge_ID , (SELECT reference FROM _Payment_Instruction WHERE _Pledge_Payment_Details.payment_instruction_id = _Payment_Instruction.id) as Payment_Instruction_Ref , (SELECT status FROM _Payment_Instruction WHERE _Pledge_Payment_Details.payment_instruction_id = _Payment_Instruction.id) as Payment_Instruction_StatusFROM _Pledge_ScheduleINNER JOIN _pledge ON _pledge_schedule.pledge_id = _pledge.idINNER JOIN _Pledge_Payment_Details ON _pledge_schedule.pledge_payment_id = _Pledge_Payment_Details.idINNER JOIN _Payment_Instruction ON _Pledge_Payment_Details.payment_instruction_id = _Payment_Instruction.idWHERE _pledge_schedule.received_date IS NULL and _pledge_schedule.status = 1 and _pledge.payment_method = 3 and _pledge.pledge_status = 1 and _Payment_Instruction.status = 4 and _pledge_schedule.fulfilment is nullORDER by _pledge_schedule.requested_date DESC , _pledge_schedule.reference DESC
So this will return every value for _pledge_schedule.status and they are all '1'.However, I need them to all be set to '2'.What is the easiest way of doing that?Cheers!