select * from Tablename where 1=1 and
decode (
REGEXP_COUNT ('TEST1,TEST2', ','),
0,
TableName.Srcsyscd = 'CONCUR',
TableName.Srcsyscd='SAP'
)
Error while executing command: [Error] Execution (38: 64): ORA-00907: missing right parenthesis
Please help to provide a solution by using decode only