I have this query:
update may9 set may9.URN = urns.URN
from urns
where may9.OSISID = urns.OSISID
Is this the most efficient way to run this query? The may9 table contains 21,000,000 records and the urns contains 24,000,000 records. Also what would be the best way to index the files?
create index osisid on may9 (OSISID)?
Thanks for any help
update may9 set may9.URN = urns.URN
from urns
where may9.OSISID = urns.OSISID
Is this the most efficient way to run this query? The may9 table contains 21,000,000 records and the urns contains 24,000,000 records. Also what would be the best way to index the files?
create index osisid on may9 (OSISID)?
Thanks for any help