I have a table.
Starting from the LAST column, I need to convert blanks to NULLs, UNTIL I reach data.
For example:
Table1
column1, column2, column3, column4, column5
column1, column2, and column3 have data and column4 and column5 have blanks.
So my process would turn column4 and column5 from blanks to NULLs.
Example 2:
Table1
column1, column2, column3, column4, column5
column1, column2, column3 and column4 have data and column5 has blanks.
So my process would turn column5 from blank to NULL.
The way I see it is to have 2 loops. One that goes through each row in the table and then, starting from the last column, updates each column until I reach data.
Does anyone have any tips on how to iterate through each column of a table? I know how to iterate through rows in a table, but I've never iterated through columns in a table.
Thanks