Reputation: 37875
There are probably better ways, but this worked for me:
Update t1
set t1.ListKey = t2.ListKey
From Jet.LookupListItemEntity_Default t1
join (Select ListKey, Id from Jet.LookupListEntity_default) as t2
on t1.ListId = t2.id
Greg
Upvotes: 0
Views: 49
Reputation: 204746
Update t1
set t1.ListKey = t2.ListKey
From Jet.LookupListItemEntity_Default t1
join Jet.LookupListEntity_default t2 on t1.ListId = t2.id
Upvotes: 2