Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithOriginally posted by: sheryle_paisley
Does anyone know how to convert this sql to BrainScript?
case when COLUMN X = INSTR(COLUMN Y, 0, 1) then 'Y' else 'N'
The syntax of your request looks off.
To search for X in Y:
if findStr(Y,X) >-1 then 'Y' else 'N'
To compare a substring:
if X = substr(Y,0,1) then 'Y' else 'N'