I am trying to build SQL statements within excel.
Sample:
I am trying to build sql statement, but wanted to only add the column when there is a value in the DIM columns. So the SQL looks neat without any syntax error when executed in SQL.
Here how can I eliminate the extra commas before the "from" keyword?
Used this to generate those statements.
="SELECT RET_ID,RET_NM, "&C2&","&D2&","&E2&","&F2&" FROMTABLEX"
