Getting error when Passed macro in Read database operator for comparison

sgnarkhede2016
New Altair Community Member
Hello,
I have account_info_date in format "01/01/2016 00:00:00 AM IST"
SELECT INSTITUTION_ID,AMOUNT,PERIOD_INDICATOR,ACCOUNT_INFO_DATE
FROM FA_FIN_INDICATOR_COMPUTATION
WHERE INSTITUTION_ID=%{institution_id} and ACCOUNT_INFO_DATE=%{account_info_date}
Getting missing right parenthesis or SQL not ended properly error
I have account_info_date in format "01/01/2016 00:00:00 AM IST"
SELECT INSTITUTION_ID,AMOUNT,PERIOD_INDICATOR,ACCOUNT_INFO_DATE
FROM FA_FIN_INDICATOR_COMPUTATION
WHERE INSTITUTION_ID=%{institution_id} and ACCOUNT_INFO_DATE=%{account_info_date}
Getting missing right parenthesis or SQL not ended properly error
Tagged:
0
Best Answer
-
Hi,
can you try to put single quotes around the macros?SELECT INSTITUTION_ID,AMOUNT,PERIOD_INDICATOR,ACCOUNT_INFO_DATE FROM FA_FIN_INDICATOR_COMPUTATION
WHERE INSTITUTION_ID='%{institution_id}' AND ACCOUNT_INFO_DATE='%{account_info_date}'
Greetings,
Jonas0
Answers
-
Hi,
can you try to put single quotes around the macros?SELECT INSTITUTION_ID,AMOUNT,PERIOD_INDICATOR,ACCOUNT_INFO_DATE FROM FA_FIN_INDICATOR_COMPUTATION
WHERE INSTITUTION_ID='%{institution_id}' AND ACCOUNT_INFO_DATE='%{account_info_date}'
Greetings,
Jonas0