I have a requirement where I need to execute a SQL Query which will be outputted to a .csv file. This will will then be opened in Excel. The data can then be manipulated in the spreadsheet and values automatically updated in computed columns (thanks to Excel expressions)
Here's an example:
Column A | Column B | Column C
1 | 2 | A+B
4 | 10 | A+B
| 12 | A+B
0 | 1 | A+B
Column C is simple Column A + Column B, however I cannot simply write this in the query, as the purpose of the spreadsheet is to allow someone to edit columns A and B in Excel and then Column C will automatically be updated.
I've thought about including the Row Number in the query and writing Column C as "=A{N}+B{N}" where N is the row index.
Is it possible to achieve something like this?