Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Copy attribute values from t1 to t2 for a list of people. T2 must have a value in place but you could use bulk update to set an initial value.
- UPDATE t1
- SET t1.Value = t2.Value
- FROM AttributeValue AS t1
- INNER JOIN (SELECT EntityId, Value FROM AttributeValue av where av.EntityId in (977,2283,2773,5723,8383,9340,9349,9500,9863,9975,9976,10038,10279,11839,16760,17994,19544,20445,21122,21393,23347,24287,25450,26059,27449,27637,28004,28005,29281,29534,31727,31728,32287,32509,33848,34902,36964,37087,37823,38256,39274,41341,44863,47439,48306,50331,50711,53191,53257,55288)
- and av.AttributeId = 5870) t2
- ON t1.EntityId = t2.EntityId
- and t1.AttributeId = 5875
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement