I have a legacy database, and several tables need a new column added that will act as the primary key for the table. The trick is there are several tens of thousands of existing rows, and the data for the new column will be the concatenation of two field values within the table.
Specifically, the new column can be temporarily created via
SELECT *, CONCAT(ContractNum, '-', PlanId) AS ConPlanId FROM ContractPlans
Using a batch script, how can I populate the exising column fields which are currently null?