HI all,
I could really do with some guidance. I am new to this network and new to BODS, so apologies in advance if I get any of this wrong.
I am a data warehouse developer who has never used BODS (version 14.0.3) and am new to HANA (1.00.83.0).
I have a BODS batch job that loads data from a SQL Server view into a HANA table, there are no transformations, it's basically a direct copy with a where clause.
What I would like to do is update a column called 'import_flag' in my HANA table . I can run the following SQL update statement in HANA, but I need the process to be automated;
UPDATE PROFIT.SALES_HISTORY_20150716
SET IMPORT_FLAG = CASEWHENLEFT(SUPPLIER,1) = 'D'ORLEFT(PRODUCT,2) = 'WK'THEN'Y'ELSE'N'END
FROM PROFIT.SALES_HISTORY_20150716
WHERE OPCO = 'ABC'
AND IMPORT_FLAG ISNULL;
I've tried to create a batch job using the SQL transform, but have just noticed that it only supports a SELECT statement.
What would be the advised approach here?
Many thanks
Hannah