I am trying to create a db input keeping in mind the data that we have in db. It has fields like PKEY, STARTTIME, ENDTIME etc. If I use PKEY or STARTTIME in Rising column, I am bound to miss some rows.
Also, both PKEY and STARTTIME fields are not unique. So, I am trying to use CONCATE(PKEY,STARTTIME).
SELECT BTACHTASK,
ASOF,
PKEY,
STARTTIME,
ENDTIME,
CONCAT(PKEY,
STARTTIME) AS combination
FROM CORE_MCA.SPLUNK_BATCH_STATES_VW
WHERE CONCAT(PKEY,STARTTIME) > ?
ORDER BY CONCAT(PKEY,STARTTIME) ASC
I am using Rising input and checkpoint should have been combination but I am not getting any results in Rising Column. I am getting the error java.sql.SQLException: Missing IN or OUT parameter at index:: 1.
What am I doing wrong here? Also, sometimes the normal query also gives this error but after refreshing and selecting the connection once again I get the required data.