Hello All,
Need a quick help.
I have below statement in data tab but whenever i run the TI Process i get an error of SQL invalidity.
sql= 'UPDATE MON_SAL SET UPI = get_decryption(UPI) WHERE UPI IS NOT NULL AND month =''APR'' and year = 2015';
ODBCoutput(strOrcDB, EXPAND(sql));
Please let me know what wrong with this code.
Thanks.
Update Query in TI Process data tab
- Michel Zijlema
- Site Admin
- Posts: 712
- Joined: Wed May 14, 2008 5:22 am
- OLAP Product: TM1, PALO
- Version: both 2.5 and higher
- Excel Version: 2003-2007-2010
- Location: Netherlands
- Contact:
Re: Update Query in TI Process data tab
I don't know why you enclosed the string APR in double single quotes, you can leave those out. Also the Expand function is not required here.manoj928 wrote:Hello All,
Need a quick help.
I have below statement in data tab but whenever i run the TI Process i get an error of SQL invalidity.
sql= 'UPDATE MON_SAL SET UPI = get_decryption(UPI) WHERE UPI IS NOT NULL AND month =''APR'' and year = 2015';
ODBCoutput(strOrcDB, EXPAND(sql));
Please let me know what wrong with this code.
Thanks.
You could try:
Code: Select all
sql= 'UPDATE MON_SAL SET UPI = get_decryption(UPI) WHERE UPI IS NOT NULL AND month = APR and year = 2015';
ODBCoutput(strOrcDB, sql);