Does ETL Support the 'IN' Function in a case when?

Mike_Shrift
Mike_Shrift βšͺ️

Does ETL Support the 'IN' Function in a case when?

Does anybody know if this is possible?

I'm getting an error I just want to make sure that it's not my syntax.

Tagged:

Answers

  • MarkSnodgrass
    MarkSnodgrass Portland, Oregon πŸ”΄

    If you are talking about using something like the Formula tile in Magic ETL, then yes. It would be written something like this:

    CASE WHEN fieldname IN (expr1, expr2, etc...) THEN 'True'

    ELSE 'False'

    END

    If your values for expr1, expr2 are all strings, then they would have single quotes around each string.

    Hope this helps.