I have a data file 1 with the columns id, a, b, c, d, e, f, g, h, i, j, k
where id is the unique / primary key / identifier.
I have received an update file 2 with the columns id, j, k, m, n
i.e. column id is the unique identifier
columns j and k have updated values,
while m and n are new columns.
The rows (i.e. set of id's) in file 2 are a subset of those in file 1
I understand that to add new columns m and n to file 1, I can use the `merge` command.
What's throwing me off is the need to simultaneously update values in columns j and k
where id is the unique / primary key / identifier.
I have received an update file 2 with the columns id, j, k, m, n
i.e. column id is the unique identifier
columns j and k have updated values,
while m and n are new columns.
The rows (i.e. set of id's) in file 2 are a subset of those in file 1
I understand that to add new columns m and n to file 1, I can use the `merge` command.
What's throwing me off is the need to simultaneously update values in columns j and k
Comment