Quick Help

I keep getting a syntax error.  What am I missing?

 

CASE WHEN `invoice number` = 325940

THEN `customer code` = 'CS10003'

ELSE `customer code`

END 

Best Answer

  • MarkSnodgrass
    MarkSnodgrass Portland, Oregon 🟤
    Accepted Answer

    Try this

    CASE WHEN `invoice number` = 325940

    THEN 'CS10003'

    ELSE `customer code`

    END

Answers