What's the best way to do this SQL code in a TI ?
Code: Select all
WHERE nAmount > 0 AND sCode IN ('A', 'B', 'C')
Code: Select all
IF(nAmount > 0 & (sCode @= 'A' % sCode @= 'B' % sCode @= 'C') );
#Do Something
ENDIF;
This next code works but I wonder if there's a "better" way to do it ? Is there an equivalent of "IN" in TM1 ?
Code: Select all
IF(nAmount > 0);
IF(sCode @= 'A' % sCode @= 'B' % sCode @= 'C');
#Do Something
ENDIF;
ENDIF;