inserting text fields sql database table

The accounting team have decided to change 150 descriptions of their chart of accounts.
the chart of account remains the same etc only the description changes.
I was thinking an insert statement would be the best way to go

would you create a table with the changes required then do an insert
SELECT column_name,column_name
 FROM table_name
 WHERE column_name operator value;

see example attached
Amanda WalshawBusiness Solutions AnalsystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

It would probably be an update statement.

First add an additional field to the existing table, say, description.


Update yourExistingTable

Set description = 'value' where accountCode='accoutncodeValue'

It will be tedious but that's the only I can ensure desciptions go to correct accountCode value.
Scott PletcherSenior DBACommented:
Import the spreadsheet, then UPDATE the existing chart-of-accounts table using that:

SET description = [is].[New Account Description]
FROM dbo.chart_of_accounts coa
INNER JOIN dbo.imported_spreadsheet [is] ON
    [is].[Account Code] = coa.account_code

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.