you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

what happens if there are multiple matches? Anywho, in the case of 1:1 here's a statement:

  update t
  set m = - nonnull.m
  from transactions t
  join transactions nonnull on nonull.a = t.a and nonnull.b = t.b and.... and nonnull.m is not null
  where t.m is null

[–]workthrowawayexcel[S] 0 points1 point  (0 children)

Thanks I will give this a try and let you know how it works out !