Alias in a CASE Statement

  • Hello Everyone

    Where does the Alias reside when using a CASE Statement?

    I have tried a couple places, after the column name, after the END statement, before the END statement. But I am still receiving an error.

    Thanks

    Andrew

  • show what you have so far, and the actual error.

    Case <column> when <value> then <value> else <value> end as <Alias>

    -- Cory

  • I got it now.

    Thanks

    Andrew SQLDBA

  • How ?

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply