I would like to write a SQL Update command that could be run once a year to update a record for every account in an Oracle Database based on external values that are received in an excel spreadsheet.
My research thus far is indicating I may be able to use a OPENROWSET command, but most references are showing this used from Excel to MS SQL Server:
INNER JOIN
OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\foldername\spreadsheetname.xls;',
'SELECT column1name, column2name, column3name, column4name
FROM [worksheetname$]') EXT
Can someone verify I am on the right path or even better provide a basic example?
The basic Psuedo logic is as follows: For every record in the Oracle USER_DEFINED table where the CODE_FIELD is equal to "CRS" AND where I have a Value on the spreadsheet with a matching account number, Update the VALUE field for that record in the Oracle USER_DEFINED table with the contents of the "Value" column in the Spreadsheet.